提交 6064e095 编写于 作者: fxy060608's avatar fxy060608

fix(mp): globalData

上级 a6a8e7cb
......@@ -1166,7 +1166,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -1558,7 +1558,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -1303,7 +1303,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -1221,7 +1221,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -1313,7 +1313,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -1166,7 +1166,9 @@ function parseBaseApp (vm, {
app: this
};
this.$vm.$scope = this;
this.$vm.$scope = this;
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData;
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted', args);
......
......@@ -64,7 +64,9 @@ export default function parseBaseApp (vm, {
app: this
}
this.$vm.$scope = this
this.$vm.$scope = this
// vm 上也挂载 globalData
this.$vm.globalData = this.globalData
this.$vm._isMounted = true
this.$vm.__call_hook('mounted', args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册