From 071666f0febc0845ef4e74eb2bf003918cb12db3 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 9 Mar 2022 12:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=BA=93=E5=8D=87=E7=BA=A7,?= =?UTF-8?q?=E4=B8=8D=E7=94=A8=E5=86=8D=E6=94=B9=E5=8A=A0=E8=BD=BD=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/router/axios.js b/examples/router/axios.js index b92e5090..af136165 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -9,7 +9,7 @@ let baseURLs = { instance.defaults.baseURL = baseURLs[process.env.NODE_ENV] instance.interceptors.request.eject(0); instance.interceptors.request.use(config => { - if (/^\/xiushan/.test(location.pathname)) { + if (/\/xiushan/.test(location.pathname)) { config.baseURL = "/xsjr" config.url = config.url.replace(/(app|auth|admin)\//, "") }