This commit is contained in:
yanran200730
2022-11-03 09:52:23 +08:00
parent 1a65407ef7
commit 350e85143a
7 changed files with 16 additions and 13 deletions

View File

@@ -6,8 +6,8 @@ import instance from "dvcp-wui/utils/http";
instance.defaults.baseURL = setting.baseUrl
instance.interceptors.request.use(config => {
if (config.baseURL === 'http://192.168.1.87:12421') {
config.url = '/api' + config.url.replace(/(app|auth|admin)\//, "")
if (config.baseURL === 'http://192.168.1.87:59998') {
config.url = config.url.replace(/(app|auth|admin|api)\//, "")
}
return config

View File

@@ -16,7 +16,7 @@ const configs = {
dev: {
areaId: '341021104000',
areaName: '郑村镇',
baseUrl: 'http://192.168.1.87:12421'
baseUrl: 'http://192.168.1.87:59998'
}
}
// 当前选中配置