diff --git a/src/core/upload.js b/src/core/upload.js index 83d2c31..48664dc 100644 --- a/src/core/upload.js +++ b/src/core/upload.js @@ -37,7 +37,7 @@ let upload = async (args) => { (rule.showLoading) && uni.hideLoading(); - if (error) { + if (error || response.statusCode != 200) { prototype.$utils.toast('网络错误'); throw "网络错误"; }