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

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

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