diff --git a/api/httpRequest3.js b/api/httpRequest3.js index aeec1a3e..49135adb 100644 --- a/api/httpRequest3.js +++ b/api/httpRequest3.js @@ -27,15 +27,15 @@ function service(options = {}) { if(res.data.code==0){ resolve(res.data); }else { - reject("系统:"+res.data.msg) + reject("系统异常:"+res.data.msg) } }else { - reject("系统:"+ res.data.msg) + reject("系统异常:"+ res.data.msg) } } else { - reject("系统:"+res.data.msg) + reject("系统异常:"+res.data.msg) } }; options.fail = (error) => { @@ -47,7 +47,7 @@ function service(options = {}) { } else if (message.includes('Request failed with status code')) { message = '接口' + message.substr(message.length - 3) + '异常' } - reject("系统:"+message); + reject("系统异常:"+message); }; uni.request(options); }); diff --git a/mycomponents/scan/winScanPackAndPosition.vue b/mycomponents/scan/winScanPackAndPosition.vue index 8ee30ffa..b3dab933 100644 --- a/mycomponents/scan/winScanPackAndPosition.vue +++ b/mycomponents/scan/winScanPackAndPosition.vue @@ -1,6 +1,6 @@