lsc 3 hours ago
parent
commit
95551ba5de
1 changed files with 4 additions and 2 deletions
  1. 4 2
      js/liyuan/Onload2.js

+ 4 - 2
js/liyuan/Onload2.js

@@ -731,8 +731,10 @@ U.MD.D.getuser = function () {
             }else if(res.status && res.status.status != 0){
                 U.UF.Cookie.del('cocorobo')
                 U.alert("用户在其他地方登录!")
-                window.onbeforeunload = null
-                window.location.reload();
+                setTimeout(()=>{
+                    window.onbeforeunload = null
+                    window.location.reload();
+                }, 500)
             }
         }, [], { "type": "GET", "withCredentials": true });
     }