This commit is contained in:
liuye
2023-01-03 09:41:45 +08:00
parent 8fe8b65535
commit e19b9bcc4a
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)) { } else if (/#url-/.test(location.hash)) {
config.baseURL = location.hash.replace(/#url-/, '/') 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)\//, "") config.url = config.url.replace(/(app|auth|admin|api)\//, "")
} }
return config return config

View File

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