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 7ca4c59 commit 518d7cbCopy full SHA for 518d7cb
packages/uni-mp-core/src/runtime/app.ts
@@ -113,6 +113,8 @@ export function initCreateSubpackageApp(parseAppOptions?: ParseAppOptions) {
113
})
114
if (!app) return
115
;(vm.$ as any).ctx.$scope = app
116
+ (vm.$ as any).ctx.$hasHook = hasHook
117
+ (vm.$ as any).ctx.$callHook = callHook
118
const globalData = app.globalData
119
if (globalData) {
120
Object.keys(appOptions.globalData).forEach((name) => {
0 commit comments