修改upload非200时都为网络错误

This commit is contained in:
TOP糯米 2023-04-08 00:17:26 +08:00
parent 68456446aa
commit e97965f15c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ let upload = async (args) => {
(rule.showLoading) && uni.hideLoading();
if (error) {
if (error || response.statusCode != 200) {
prototype.$utils.toast('网络错误');
throw "网络错误";
}