This commit is contained in:
yanran200730
2023-06-12 09:20:19 +08:00
parent 06eaf1e59d
commit e3a9f8032b
2 changed files with 3 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ instance.interceptors.request.use(config => {
config.baseURL = location.hash.replace(/#url-/, '/') config.baseURL = location.hash.replace(/#url-/, '/')
} }
if (["/omsapi"].includes(config.baseURL)) { if (["/omsapi"].includes(config.baseURL)) {
config.url = config.url.replace(/(app|auth|admin|api)\//, "") config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")
} }
if (["/xsjr", "/tfx"].includes(config.baseURL)) { if (["/xsjr", "/tfx"].includes(config.baseURL)) {
config.url = config.url.replace(/(app|auth|admin|api)\//, "api/") config.url = config.url.replace(/(app|auth|admin|api)\//, "api/")

View File

@@ -184,6 +184,8 @@
if (res.data.length) { if (res.data.length) {
this.search.appId = res.data[0].appId this.search.appId = res.data[0].appId
this.getInfo()
} }
} }
}) })