增加湖南公安项目的配置

This commit is contained in:
aixianling
2022-06-06 10:15:45 +08:00
parent 4895449771
commit 35328f3b54
2 changed files with 5 additions and 2 deletions

View File

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