|
@@ -77,7 +77,10 @@ module.exports = (vm) => {
|
|
|
// console.log('data====',data);
|
|
|
// 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
|
|
|
if (custom.toast !== false) {
|
|
|
- uni.$u.toast(data.msg)
|
|
|
+ const unshowmsg = ['令牌不能为空'];
|
|
|
+ if (!unshowmsg.includes(data.msg)) {
|
|
|
+ uni.$u.toast(data.msg)
|
|
|
+ }
|
|
|
}
|
|
|
if(data.msg == "令牌验证失败" || data.msg == "令牌不能为空" || data.code == 401){
|
|
|
unlogin()
|