From de44f7908631daf11251974d7ffdbcdeddeb06e2 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 20 Jul 2022 09:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= 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 6dbc4376..bfae72f0 100644 --- a/src/common/modules.js +++ b/src/common/modules.js @@ -219,7 +219,7 @@ export const wxwork = { }, getCode({state, dispatch}, tryAgentSign = false) { let {corpid: corpId, suiteId, agentid: agentId} = state.config, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_privateinfo" - if (/\/AppForm/.test(location.pathname)) { + if (/AppForm/.test(location.pathname)) { scope = "snsapi_base" } else if (suiteId) { corpId = suiteId