From 4ead05b2511f0d2c483e78bbd890a10d95074ec0 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 23 Dec 2024 09:48:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(xumu):=20=E8=B0=83=E6=95=B4=20API=20?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=B7=AF=E5=BE=84=E5=92=8C=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?-=20=E7=A7=BB=E9=99=A4=E4=BA=86=20axios.js=20=E4=B8=AD=E5=AF=B9?= =?UTF-8?q?=20xumu=20=E7=8E=AF=E5=A2=83=E7=9A=84=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=20-=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BA=86=20.env.xumu=20=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=20?= =?UTF-8?q?API=20=E5=9C=B0=E5=9D=80=E5=92=8C=E7=AB=AF=E5=8F=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.xumu | 2 +- examples/router/axios.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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))