From a2be5da5ab8e1fe68901ab9b3a6606587d63dbed Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Sat, 23 Jan 2021 12:00:57 +0800 Subject: [PATCH] fix(mp-alipay): mixin with props #1858 --- src/core/runtime/wrapper/util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index 3b6fdf7ab..c91dfb17a 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -177,6 +177,9 @@ export function initBehaviors (vueOptions, initBehavior) { } }) } + if (__PLATFORM__ === 'mp-alipay') { // alipay 重复定义props会报错,下边的代码对于其他平台也没有意义,保险起见,仅对alipay做处理 + return + } if (isPlainObject(vueExtends) && vueExtends.props) { behaviors.push( initBehavior({ @@ -569,4 +572,4 @@ export function handleEvent (event) { ) { return ret[0] } -} +} -- GitLab