diff --git a/js/publics/public.js b/js/publics/public.js index a170af5..553c02b 100644 --- a/js/publics/public.js +++ b/js/publics/public.js @@ -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; } } //判断字符是否为空的方法