bug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -16,7 +16,7 @@ const configs = {
|
||||
dev: {
|
||||
areaId: '341021104000',
|
||||
areaName: '郑村镇',
|
||||
baseUrl: 'http://192.168.1.87:12421'
|
||||
baseUrl: 'http://192.168.1.87:59998'
|
||||
}
|
||||
}
|
||||
// 当前选中配置
|
||||
|
||||
Reference in New Issue
Block a user