Skip to content

Commit

Permalink
fix(mp-baidu): triggerEvent
Browse files Browse the repository at this point in the history
Cannot read property 'catchhook:created' of undefined
  • Loading branch information
zhetengbiji committed Oct 17, 2022
1 parent f44f314 commit ea4aab7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea4aab7

Please sign in to comment.