lsc 2 weeks ago
parent
commit
f553487143
3 changed files with 21 additions and 3 deletions
  1. 7 1
      js/Desktop/Onload.js
  2. 7 1
      js/liyuan/Onload.js
  3. 7 1
      js/liyuan/Onload2.js

+ 7 - 1
js/Desktop/Onload.js

@@ -707,7 +707,13 @@ U.MD.D.getuser = function () {
 
                 }, [], { "type": "GET", "withCredentials": true });
             }else {
-                LoginState = false
+                window.removeEventListener('beforeunload', function (event) { 
+                    // 阻止默认行为 
+                    event.preventDefault(); 
+                    event.returnValue = ''; 
+                    // / 对某些浏览器有效 
+                });
+                window.location.reload();
             }
         }, [], { "type": "GET", "withCredentials": true });
     }

+ 7 - 1
js/liyuan/Onload.js

@@ -703,7 +703,13 @@ U.MD.D.getuser = function () {
 
                 }, [], { "type": "GET", "withCredentials": true });
             }else {
-                LoginState = false
+                window.removeEventListener('beforeunload', function (event) { 
+                    // 阻止默认行为 
+                    event.preventDefault(); 
+                    event.returnValue = ''; 
+                    // / 对某些浏览器有效 
+                });
+                window.location.reload();
             }
         }, [], { "type": "GET", "withCredentials": true });
     }

+ 7 - 1
js/liyuan/Onload2.js

@@ -703,7 +703,13 @@ U.MD.D.getuser = function () {
 
                 }, [], { "type": "GET", "withCredentials": true });
             }else {
-                LoginState = false
+                window.removeEventListener('beforeunload', function (event) { 
+                    // 阻止默认行为 
+                    event.preventDefault(); 
+                    event.returnValue = ''; 
+                    // / 对某些浏览器有效 
+                });
+                window.location.reload();
             }
         }, [], { "type": "GET", "withCredentials": true });
     }