From 8dc79e37fca61b6c82902e67cbc01fc48d5860ee Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 9 Jun 2022 19:31:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp-weixin):=20=E4=BF=AE=E5=A4=8D=20manifest?= =?UTF-8?q?=20=E7=BC=BA=E5=B0=91=20mp-weixin=20=E8=8A=82=E7=82=B9=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-mp-weixin/lib/createIndependentPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-mp-weixin/lib/createIndependentPlugin.js b/packages/uni-mp-weixin/lib/createIndependentPlugin.js index 7b39b1d4a..b981b3218 100644 --- a/packages/uni-mp-weixin/lib/createIndependentPlugin.js +++ b/packages/uni-mp-weixin/lib/createIndependentPlugin.js @@ -10,7 +10,7 @@ const AppInterceptorPlugin = require('./independent-plugins/app-interceptor-plug module.exports = function createIndependentPlugins () { const manifestConfig = process.UNI_MANIFEST - const weixinConfig = manifestConfig['mp-weixin'] + const weixinConfig = manifestConfig['mp-weixin'] || {} const independentSwitch = !!weixinConfig.independent if (!independentSwitch) return [] -- GitLab