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