提交 27cc972e 编写于 作者: D DCloud_LXH 提交者: qiang

fix(mp-alipay): 修复 使用 $emit 触发事件报错的Bug

上级 72093467
...@@ -5827,9 +5827,10 @@ function internalMixin(Vue) { ...@@ -5827,9 +5827,10 @@ function internalMixin(Vue) {
Vue.prototype.$emit = function(event) { Vue.prototype.$emit = function(event) {
if (this.$scope && event) { if (this.$scope && event) {
(this.$scope['_triggerEvent'] || this.$scope['triggerEvent'])(event, { (this.$scope['_triggerEvent'] || this.$scope['triggerEvent'])
__args__: toArray(arguments, 1) .call(this.$scope, event, {
}); __args__: toArray(arguments, 1)
})
} }
return oldEmit.apply(this, arguments) return oldEmit.apply(this, arguments)
}; };
...@@ -5893,7 +5894,7 @@ function internalMixin(Vue) { ...@@ -5893,7 +5894,7 @@ function internalMixin(Vue) {
if (!target) { if (!target) {
target = this; target = this;
} }
// 解决动态属性添加 // 解决动态属性添加
Vue.set(target, key, value) Vue.set(target, key, value)
}; };
...@@ -5901,7 +5902,7 @@ function internalMixin(Vue) { ...@@ -5901,7 +5902,7 @@ function internalMixin(Vue) {
if (!target) { if (!target) {
target = this; target = this;
} }
// 解决动态属性添加 // 解决动态属性添加
Vue.set(target, key, value) Vue.set(target, key, value)
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册