From 7a84258622b8359146fcd55cf58149a7529a3df7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 29 Dec 2022 17:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/modules.js b/src/common/modules.js index 715162bf..8faa1ea3 100644 --- a/src/common/modules.js +++ b/src/common/modules.js @@ -275,7 +275,7 @@ export const wxwork = { }, getCode({state, dispatch}, params) { const excute = (tryAgentSign = false) => { - if (!params.appid) { + if (!params?.appid) { let {corpid: corpId, suiteId, agentid} = state.config, scope = "snsapi_privateinfo" if (/AppForm/.test(location.pathname)) { scope = "snsapi_base"