@dcloudio/uni-app-plus 3.0.0-alpha-3040020220301003 → 3.0.0-alpha-3040120220308001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17305,17 +17305,15 @@ var serviceContext = (function (vue) {
|
|
|
17305
17305
|
});
|
|
17306
17306
|
if (mpType === 'page') {
|
|
17307
17307
|
instance.__isVisible = true;
|
|
17308
|
+
// 直接触发页面 onLoad、onShow 组件内的 onLoad 和 onShow 在注册时,直接触发一次
|
|
17308
17309
|
try {
|
|
17309
17310
|
invokeHook(publicThis, ON_LOAD, instance.attrs.__pageQuery);
|
|
17310
17311
|
delete instance.attrs.__pageQuery;
|
|
17312
|
+
invokeHook(publicThis, ON_SHOW);
|
|
17311
17313
|
}
|
|
17312
17314
|
catch (e) {
|
|
17313
17315
|
console.error(e.message + LINEFEED + e.stack);
|
|
17314
17316
|
}
|
|
17315
|
-
vue.nextTick(() => {
|
|
17316
|
-
// 延迟onShow,保证组件的onShow也可以监听到
|
|
17317
|
-
invokeHook(publicThis, ON_SHOW);
|
|
17318
|
-
});
|
|
17319
17317
|
}
|
|
17320
17318
|
}
|
|
17321
17319
|
|