整合企微token变量

This commit is contained in:
aixianling
2022-07-19 18:06:22 +08:00
parent 36852052ec
commit eda5128d4b
31 changed files with 170 additions and 207 deletions

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 (!/^App/.test(module)) {
} else if (!/^App/.test(module) && module) {
config.baseURL = `/${module}`
if (['xaxc'].includes(module)) {
config.url = config.url.replace(/(app|auth|admin)\//, "api/")