打印oauth2链接

This commit is contained in:
aixianling
2022-07-19 15:49:46 +08:00
parent 8c0021f9db
commit e271bd90d8

View File

@@ -69,6 +69,7 @@ export const config = {
.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(oauthURL)
location.replace(oauthURL) location.replace(oauthURL)
} else if (!tryAgentSign) { } else if (!tryAgentSign) {
dispatch("agentSign", {corpId, suiteId}).then(() => dispatch("getCode", true)).then(() => resolve()) dispatch("agentSign", {corpId, suiteId}).then(() => dispatch("getCode", true)).then(() => resolve())