代理修复
This commit is contained in:
@@ -10,7 +10,8 @@ instance.interceptors.request.use(config => {
|
|||||||
config.baseURL = '/aca'
|
config.baseURL = '/aca'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (/\/project\/beta\//.test(location.pathname) || config.module == 'wangge' || module == "wangge") {
|
} 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") {
|
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") {
|
||||||
config.baseURL = '/hnjc'
|
config.baseURL = '/hnjc'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
|
|||||||
@@ -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(oauthURL)
|
console.log(/AppForm/.test(location.pathname), 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())
|
||||||
|
|||||||
Reference in New Issue
Block a user