From be6561174efc35f4b660b2307b2c12da62670e5c Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Mon, 2 Feb 2026 11:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/axios.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/router/axios.js b/src/router/axios.js index 27c6e1e..82b9285 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -46,23 +46,24 @@ axios.interceptors.request.use(config => { // 初始化错误提示状态 isErrorShown = false; //地址为已经配置状态则不添加前缀 - if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { - if(config.url.indexOf('smartpark')>0){ - config.url = config.url; - }else{ - config.url = baseUrl + config.url; - } - } - // if(config.url.indexOf('/smartpark') != -1){ - // if(config.url.indexOf('/AES/decryptAndGetUser') != -1){ - // config.url = config.url.replace('/smartpark','http://10.90.100.231:8132') + // if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { + // if(config.url.indexOf('smartpark')>0){ + // config.url = config.url; // }else{ - // config.url = config.url.replace('/smartpark','http://10.90.100.231:8333') + // config.url = baseUrl + config.url; // } // } - // else{ - // config.url = "http://10.90.100.231:8333" + config.url - // } + + // console.log(99999,window.BASE_URL) + if(config.url.indexOf('/smartpark') != -1){ + if(config.url.indexOf('/AES/decryptAndGetUser') != -1){ + config.url = config.url.replace('/smartparkAPP','http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableTest') + }else{ + config.url = config.url.replace('/smartpark','http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableWebTestFront/smartpark') + } + }else{ + config.url = "http://10.90.100.231:8333" + config.url + } //安全请求header config.headers['Blade-Requested-With'] = 'BladeHttpRequest';