Explorar el Código

新增登陆校验

chenweida hace 7 años
padre
commit
5c9149d1e3

+ 2 - 2
svr/svr-manage/src/main/resources/webapp/common/js/util/util.js

@ -117,7 +117,7 @@ function getUserCode() {
    var code = window.localStorage.getItem("userCode");
    if (!code) {
        alert("请重新登陆")
        window.location.href = server+'/login/login.jsp';
        window.location.href = server+'/login/login.html';
    }
    return code
}
@ -133,6 +133,6 @@ function setUserCode(code) {
function isLogin(data){
    if(data.errorCode==not_login){
         alert("请重新登陆")
         window.location.href = server+'/login/login.jsp';
         window.location.href = server+'/login/login.html';
    }
}