diff --git a/.env.xumu b/.env.xumu index fc2068a6..dc70a8cc 100644 --- a/.env.xumu +++ b/.env.xumu @@ -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 diff --git a/examples/router/axios.js b/examples/router/axios.js index f6e1e163..2f025900 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -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))