提交 ea4aab7e 编写于 作者: Q qiang

fix(mp-baidu): triggerEvent

Cannot read property 'catchhook:created' of undefined
上级 f44f3140
......@@ -5850,9 +5850,13 @@ function internalMixin(Vue) {
if (this.$scope && event) {
var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
if (triggerEvent) {
triggerEvent.call(this.$scope, event, {
__args__: toArray(arguments, 1)
});
try {
triggerEvent.call(this.$scope, event, {
__args__: toArray(arguments, 1)
});
} catch (error) {
}
}
}
return oldEmit.apply(this, arguments)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册