提供新的路径
This commit is contained in:
@@ -14,7 +14,10 @@ instance.interceptors.request.use(config => {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
if (/\/grid\//.test(location.pathname)) {
|
||||
config.baseURL = '/grid'
|
||||
config.baseURL = '/wangge'
|
||||
}
|
||||
if (/\/project\/police\//.test(location.pathname)) {
|
||||
config.baseURL = '/hnjc'
|
||||
}
|
||||
if (sessionStorage.getItem("prj") == "saas") {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
|
||||
Reference in New Issue
Block a user