修复代理错误

This commit is contained in:
aixianling
2022-07-01 16:30:11 +08:00
parent 395878a54d
commit 236cc6a114

View File

@@ -14,7 +14,7 @@ instance.interceptors.request.use(config => {
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") {
config.baseURL = '/hnjc'
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
} else if (module) {
} else if (!/^App/.test(module)) {
config.baseURL = `/${module}`
} else if (sessionStorage.getItem("prj") == "saas" || module == "saas") {
config.baseURL = '/online'