修复黔西南异常
This commit is contained in:
@@ -26,15 +26,15 @@ instance.interceptors.request.use(config => {
|
||||
} else if (/#url-/.test(location.hash)) {
|
||||
config.baseURL = location.hash.replace(/#url-/, '/')
|
||||
}
|
||||
if (["/omsapi"].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")
|
||||
}
|
||||
if (["/xsjr", "/tfx"].includes(config.baseURL)) {
|
||||
if (["/xsjr", "/tfx", "/omsapi"].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")
|
||||
}
|
||||
if (['/qxn', '/analysis'].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
if (process.env.VUE_APP_IS_SIMPLE_SERVER == 1) {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
return config
|
||||
}, error => Message.error(error))
|
||||
export default instance
|
||||
|
||||
Reference in New Issue
Block a user