|
|
@@ -25,7 +25,6 @@ service.interceptors.request.use(
|
|
|
return config;
|
|
|
},
|
|
|
(error:any) => {
|
|
|
- if(error.config.url=='http://58.33.243.164:50004/height') return
|
|
|
// 请求错误时做处理
|
|
|
showToast({duration:5000,message:'网络开小车了,检查网络'})
|
|
|
return Promise.reject(error);
|
|
|
@@ -55,7 +54,7 @@ service.interceptors.response.use(
|
|
|
if(res.code===305 && response.config.url=='api/entryOrder/app/blind/checkBarcodeIgnoreCase' ){
|
|
|
return res
|
|
|
}
|
|
|
- if( response.config.url=='api/wms/fluxPrint/print' || response.config.url=='http://58.33.243.164:50004/height'){
|
|
|
+ if( response.config.url=='api/wms/fluxPrint/print' || response.config.url=='http://58.33.243.164:50004/height'){
|
|
|
return res
|
|
|
}
|
|
|
if(res.message=='找不到此盲收任务'){
|
|
|
@@ -71,7 +70,6 @@ service.interceptors.response.use(
|
|
|
return res;
|
|
|
},
|
|
|
(error:any) => {
|
|
|
- if(error.config.url=='http://58.33.243.164:50004/height') return
|
|
|
if (error.code === 'ECONNABORTED') {
|
|
|
// 请求超时处理
|
|
|
showNotify({duration:5000,message:'请求超时,请稍后重试!'})
|