Skip to content

Commit

Permalink
fix(core): fixed hooks of undefined
Browse files Browse the repository at this point in the history
fix #2486
  • Loading branch information
Gcaufy committed Feb 20, 2020
1 parent 8e50e4a commit f705771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/weapp/init/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export function patchLifecycle(output, options, rel, isComponent) {
vm._watchers = [];
if (!isComponent) {
vm.$root = vm;
}
if (app) {
vm.$app = app;
}
if (this.is === 'custom-tab-bar/index') {
Expand Down

0 comments on commit f705771

Please sign in to comment.