|
@@ -675,12 +675,7 @@ U.MD.D.getuser = function () {
|
|
|
|
|
|
var _cookie = U.UF.Cookie.get("cocorobo");
|
|
var _cookie = U.UF.Cookie.get("cocorobo");
|
|
if(LoginState && !_cookie){
|
|
if(LoginState && !_cookie){
|
|
- window.removeEventListener('beforeunload', function (event) {
|
|
|
|
- // 阻止默认行为
|
|
|
|
- event.preventDefault();
|
|
|
|
- event.returnValue = '';
|
|
|
|
- // / 对某些浏览器有效
|
|
|
|
- });
|
|
|
|
|
|
+ window.onbeforeunload = null
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}else if(LoginState && !CookieS){
|
|
}else if(LoginState && !CookieS){
|
|
CookieS = _cookie
|
|
CookieS = _cookie
|
|
@@ -703,12 +698,7 @@ U.MD.D.getuser = function () {
|
|
|
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
}else {
|
|
}else {
|
|
- window.removeEventListener('beforeunload', function (event) {
|
|
|
|
- // 阻止默认行为
|
|
|
|
- event.preventDefault();
|
|
|
|
- event.returnValue = '';
|
|
|
|
- // / 对某些浏览器有效
|
|
|
|
- });
|
|
|
|
|
|
+ window.onbeforeunload = null
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}
|
|
}
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
}, [], { "type": "GET", "withCredentials": true });
|