From e3674be5bd96ac19bd38f9e42e0f73a81a624b57 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 15 Nov 2019 13:54:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=AB=AF=E4=B8=8D=E8=83=BD=E7=9B=B4=E6=8E=A5=E5=9C=A8?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=86=85=E4=BD=BF=E7=94=A8$emit=E7=9A=84Bug?= =?UTF-8?q?=20askID:82865?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/mp-vue/dist/mp.runtime.esm.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js index eb536888a..0b2184f28 100644 --- a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js +++ b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js @@ -5765,12 +5765,13 @@ function internalMixin(Vue) { var oldEmit = Vue.prototype.$emit; Vue.prototype.$emit = function(event) { - if (this.$scope && event) { - this.$scope['triggerEvent'](event, { - __args__: toArray(arguments, 1) - }); + if (this.$scope && event) { + this.$scope['triggerEvent'](event, { + __args__: toArray(arguments, 1) + }); + } else { + return oldEmit.apply(this, arguments) } - return oldEmit.apply(this, arguments) }; Vue.prototype.$nextTick = function(fn) { -- GitLab