This commit is contained in:
yanran200730
2023-01-03 10:41:42 +08:00
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -129,7 +129,7 @@ module.exports = {
}
},
'/qxn': {
target: 'http://192.168.1.87:12000',
target: 'http://192.168.1.87:12001',
changeOrigin: true,
pathRewrite: {
//地址重写