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';