We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b2b5b commit 3032994Copy full SHA for 3032994
1 file changed
packages/uni-vue/src/componentOptions/hooks.ts
@@ -93,8 +93,15 @@ export function initHooks(
93
: (publicThis.$page as Page.PageInstance['$page'])
94
if (!(__PLATFORM__ === 'app' && __X__ && $basePage?.meta.isTabBar)) {
95
if ($basePage?.openType !== 'preloadPage') {
96
- if (__X__ && isDialogPageInstance(getPageInstanceByChild(instance))) {
97
- invokeNewDialogPageHook(publicThis.$page as UniDialogPage, ON_SHOW)
+ if (__X__) {
+ if (isDialogPageInstance(getPageInstanceByChild(instance))) {
98
+ invokeNewDialogPageHook(
99
+ publicThis.$page as UniDialogPage,
100
+ ON_SHOW
101
+ )
102
+ } else {
103
+ invokeHook(publicThis, ON_SHOW)
104
+ }
105
return
106
}
107
invokeHook(publicThis, ON_SHOW)
0 commit comments