修复异常

This commit is contained in:
aixianling
2022-07-20 09:27:18 +08:00
parent a524fd5118
commit de44f79086

View File

@@ -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