修改upload非200时都为网络错误
This commit is contained in:
parent
d1ec32851e
commit
eee8b56c17
|
@ -36,8 +36,7 @@ let upload = async (args) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
(rule.showLoading) && uni.hideLoading();
|
(rule.showLoading) && uni.hideLoading();
|
||||||
|
if (error || response.statusCode != 200) {
|
||||||
if (error) {
|
|
||||||
prototype.$utils.toast('网络错误');
|
prototype.$utils.toast('网络错误');
|
||||||
throw "网络错误";
|
throw "网络错误";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue