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