From 17d083e0eeeddd5c24988ff41aded234a12816ce Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 9 Apr 2021 20:29:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20initScopedSlotsParams=20=E9=99=90?= =?UTF-8?q?=E5=AE=9A=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js b/src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js index 16883c507..aa346c27e 100644 --- a/src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js +++ b/src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js @@ -95,7 +95,9 @@ export default function parseBaseApp (vm, { initRefs }) { initEventChannel() - initScopedSlotsParams() + if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-qq' || __PLATFORM__ === 'mp-toutiao' || __PLATFORM__ === 'mp-kuaishou' || __PLATFORM__ === 'mp-alipay' || __PLATFORM__ === 'mp-baidu') { + initScopedSlotsParams() + } if (vm.$options.store) { Vue.prototype.$store = vm.$options.store } -- GitLab