修复异常
This commit is contained in:
@@ -219,7 +219,7 @@ export const wxwork = {
|
|||||||
},
|
},
|
||||||
getCode({state, dispatch}, tryAgentSign = false) {
|
getCode({state, dispatch}, tryAgentSign = false) {
|
||||||
let {corpid: corpId, suiteId, agentid: agentId} = state.config, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_privateinfo"
|
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"
|
scope = "snsapi_base"
|
||||||
} else if (suiteId) {
|
} else if (suiteId) {
|
||||||
corpId = suiteId
|
corpId = suiteId
|
||||||
|
|||||||
Reference in New Issue
Block a user