增加西安新城区定制项目代理

This commit is contained in:
aixianling
2022-07-01 15:25:53 +08:00
parent eedde26986
commit efbfe7d383
3 changed files with 11 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ 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) {
config.baseURL = `/${module}`
} else if (sessionStorage.getItem("prj") == "saas" || module == "saas") {
config.baseURL = '/online'
} else config.baseURL = "/lan"