|
|
|
|
@ -47,14 +47,23 @@ 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')
|
|
|
|
|
// }else{
|
|
|
|
|
// config.url = config.url.replace('/smartpark','http://10.90.100.231:8333')
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// else{
|
|
|
|
|
// config.url = "http://10.90.100.231:8333" + config.url
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//安全请求header
|
|
|
|
|
config.headers['Blade-Requested-With'] = 'BladeHttpRequest'; |
|
|
|
|
//headers判断是否需要
|
|
|
|
|
|