代理修复

This commit is contained in:
aixianling
2022-07-20 10:35:25 +08:00
parent de44f79086
commit 8cb70a37c2
2 changed files with 3 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ instance.interceptors.request.use(config => {
config.baseURL = '/aca'
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
} else if (/\/project\/beta\//.test(location.pathname) || config.module == 'wangge' || module == "wangge") {
config.baseURL = '/wangge'
} else if (/saas/.test(location.pathname) || config.module == 'saas' || module == "saas") {
config.baseURL = '/online'
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") {
config.baseURL = '/hnjc'
config.url = config.url.replace(/(app|auth|admin)\//, "api/")

View File

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