refactor(xumu): 调整 API 请求路径和端口- 移除了 axios.js 中对 xumu 环境的特殊处理逻辑
- 更新了 .env.xumu 文件中的 API 地址和端口号
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
VUE_APP_SCOPE=xumu
|
||||
VUE_APP_API=http://192.168.1.87:19998
|
||||
VUE_APP_API=http://192.168.1.87:12413
|
||||
VUE_APP_IS_SIMPLE_SERVER=1
|
||||
VUE_APP_PORT=12413
|
||||
VUE_APP_OMS_ID=2cd70a15-a3cf-4b4d-9a22-0f3b3a888b08 # oms定制方案的ID
|
||||
|
||||
@@ -12,9 +12,6 @@ instance.interceptors.request.use(config => {
|
||||
}
|
||||
if (process.env.VUE_APP_IS_SIMPLE_SERVER == 1) {
|
||||
config.url = config.url.replace(/^\/(app|auth|admin)\//, "/api/")
|
||||
if (['xumu'].includes(process.env.VUE_APP_SCOPE)) {
|
||||
config.url = config.url.replace("/api/", "/")
|
||||
}
|
||||
}
|
||||
return config
|
||||
}, error => Message.error(error))
|
||||
|
||||
Reference in New Issue
Block a user