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 f6f8b89 commit bbd0033Copy full SHA for bbd0033
packages/uni-mp-core/src/runtime/app.ts
@@ -123,6 +123,8 @@ export function initCreateSubpackageApp(parseAppOptions?: ParseAppOptions) {
123
})
124
if (!app) return
125
;(vm.$ as any).ctx.$scope = app
126
+ (vm.$ as any).ctx.$hasHook = hasHook
127
+ (vm.$ as any).ctx.$callHook = callHook
128
const globalData = app.globalData
129
if (globalData) {
130
Object.keys(appOptions.globalData).forEach((name) => {
0 commit comments