代理修复

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/")