diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index 5863d424008bb3b332c372426bc32087a8793cf9..ad0d83dec21244eac2dbd6ac4998d5b6478640b7 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -485,6 +485,18 @@ export function handleEvent (event) { handlerCtx.$parent.$parent ) { // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots handlerCtx = handlerCtx.$parent.$parent + } + if (methodName === '$emit') { + handlerCtx.$emit.apply(handlerCtx, + processEventArgs( + this.$vm, + event, + eventArray[1], + eventArray[2], + isCustom, + methodName + )) + return } const handler = handlerCtx[methodName] if (!isFn(handler)) {