bug
This commit is contained in:
@@ -26,9 +26,12 @@ instance.interceptors.request.use(config => {
|
||||
} else if (/#url-/.test(location.hash)) {
|
||||
config.baseURL = location.hash.replace(/#url-/, '/')
|
||||
}
|
||||
if (["/xsjr", "/omsapi", "/tfx"].includes(config.baseURL)) {
|
||||
if (["/omsapi"].includes(config.baseURL)) {
|
||||
config.url = config.url.replace(/(app|auth|admin|api)\//, "")
|
||||
}
|
||||
if (["/xsjr", "/tfx"].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/")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user