This commit is contained in:
cwchen 2024-04-10 15:41:38 +08:00
parent 4079d4ed75
commit 14bd3c2946
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,9 @@ function loginout(type) {
}
});
} else if (result.code === 500) {
layer.msg(result.msg, { icon: 2 });
layer.msg("登出失败", { icon: 2 });
}else if(result.code === 401 || result.code === 403){
backLoginPage();
}
}, function (xhr) {
error(xhr)
@ -71,6 +73,8 @@ function backLoginPage() {
top.location.href = login_sg_page;
} else if (zhgd_type === "1") {
top.location.href = login_sc_page;
}else {
top.location.href = login_sc_page;
}
}
//判断字符是否为空的方法