优化接口返回提示

master
chen 2022-07-27 11:02:05 +08:00
parent 042b5384e4
commit 8e06fc4d8a
19 changed files with 30 additions and 23 deletions

View File

@ -150,12 +150,11 @@ const request = (method, url, options, ifLogin) => {
});
} else {
checkError(res)
uni.showToast({
title:res.data.msg,
icon:'none'
})
}
// uni.showToast({
// title:res.data.msg,
// icon:'none'
// })
}
} else if(res.statusCode==500) {
flag = false;
@ -183,8 +182,16 @@ const request = (method, url, options, ifLogin) => {
})
},
});
uni.showToast({
title:'接口错误',
icon:'none'
})
} else {
checkError(res)
uni.showToast({
title:'接口错误',
icon:'none'
})
}
},
fail: e => {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long