公共js
This commit is contained in:
parent
4079d4ed75
commit
14bd3c2946
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
//判断字符是否为空的方法
|
||||
|
|
|
|||
Loading…
Reference in New Issue