From 27cc972e58f502877e0501ab33b21239ad50857e Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 24 Jan 2022 12:18:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp-alipay):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20$emit=20=E8=A7=A6=E5=8F=91=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E9=94=99=E7=9A=84Bug?= 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 8c6c56515..4bd476e36 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 @@ -5827,9 +5827,10 @@ function internalMixin(Vue) { Vue.prototype.$emit = function(event) { if (this.$scope && event) { - (this.$scope['_triggerEvent'] || this.$scope['triggerEvent'])(event, { - __args__: toArray(arguments, 1) - }); + (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']) + .call(this.$scope, event, { + __args__: toArray(arguments, 1) + }) } return oldEmit.apply(this, arguments) }; @@ -5893,7 +5894,7 @@ function internalMixin(Vue) { if (!target) { target = this; } - // 解决动态属性添加 + // 解决动态属性添加 Vue.set(target, key, value) }; @@ -5901,7 +5902,7 @@ function internalMixin(Vue) { if (!target) { target = this; } - // 解决动态属性添加 + // 解决动态属性添加 Vue.set(target, key, value) }; -- GitLab