From b7c0ceeb707804fcf3d30c17e676f4eafcdff9f4 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:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9request=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/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/request.js b/src/core/request.js index f4fa436..c441377 100644 --- a/src/core/request.js +++ b/src/core/request.js @@ -53,7 +53,7 @@ const request = async (args) => { (rule.showLoading) && uni.hideLoading(); - if (error) { + if (error || response.statusCode != 200) { prototype.$utils.toast('网络错误'); throw "网络错误"; }