代理修复
This commit is contained in:
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user