lsc 12 годин тому
батько
коміт
fb58ee15b0
1 змінених файлів з 5 додано та 9 видалено
  1. 5 9
      js/liyuan/Onload2.js

+ 5 - 9
js/liyuan/Onload2.js

@@ -693,7 +693,6 @@ U.MD.D.getuser = function () {
     var _cookie = U.UF.Cookie.get("cocorobo");
     if(LoginState && !_cookie){
         window.onbeforeunload = null
-        U.alert("LoginState && !_cookie!")
         window.location.reload();
     }else if(LoginState && !CookieS){
         CookieS = _cookie
@@ -720,9 +719,9 @@ U.MD.D.getuser = function () {
             }else {
                 window.onbeforeunload = null
                 U.alert("LoginState && _cookie != CookieS!")
-                U.alert(_cookie)
-                U.alert(CookieS)
-                U.alert(LoginState)
+                window.alert(_cookie)
+                window.alert(CookieS)
+                window.alert(LoginState)
                 setTimeout(()=>{
                     window.location.reload();
                 }, 1000)
@@ -737,11 +736,8 @@ U.MD.D.getuser = function () {
                 isPanL = false
             }else if(res.status && res.status.status != 0){
                 U.UF.Cookie.del('cocorobo')
-                U.alert("用户在其他地方登录!")
-                setTimeout(()=>{
-                    window.onbeforeunload = null
-                    window.location.reload();
-                }, 500)
+                window.onbeforeunload = null
+                window.location.reload();
             }
         }, [], { "type": "GET", "withCredentials": true });
     }