打印location

This commit is contained in:
aixianling
2022-07-20 14:49:17 +08:00
parent e99eb43437
commit d4ca532164

View File

@@ -232,7 +232,7 @@ export const wxwork = {
.replace(/REDIRECT_URI/g, REDIRECT_URI) .replace(/REDIRECT_URI/g, REDIRECT_URI)
.replace(/SCOPE/g, scope) .replace(/SCOPE/g, scope)
.replace(/AGENTID/g, agentId) .replace(/AGENTID/g, agentId)
console.log(/AppForm/.test(location.pathname), oauthURL) console.log(location, oauthURL)
location.replace(oauthURL) location.replace(oauthURL)
} else if (!tryAgentSign && corpId) { } else if (!tryAgentSign && corpId) {
dispatch("agentSign", {corpId, suiteId}).then(() => dispatch("getCode", true)).then(() => resolve()) dispatch("agentSign", {corpId, suiteId}).then(() => dispatch("getCode", true)).then(() => resolve())