From e97965f15c1a6ee60fee058d074ec5d4aa5bde0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Sat, 8 Apr 2023 00:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9upload=E9=9D=9E200=E6=97=B6?= =?UTF-8?q?=E9=83=BD=E4=B8=BA=E7=BD=91=E7=BB=9C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "网络错误"; }