This commit is contained in:
shijingjing
2023-02-09 16:00:29 +08:00
parent a3b9c28bd6
commit afdbfec823
6 changed files with 242 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ instance.interceptors.request.use(config => {
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
} else if (!/^App/.test(module) && module) {
config.baseURL = `/${module}`
if (['xaxc', 'qxn', 'yyhd'].includes(module)) {
if (['xaxc', 'qxn', 'yyhd','tr'].includes(module)) {
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
}
} else config.baseURL = "/lan"