|
@@ -693,7 +693,6 @@ 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.onbeforeunload = null
|
|
window.onbeforeunload = null
|
|
|
- U.alert("LoginState && !_cookie!")
|
|
|
|
|
window.location.reload();
|
|
window.location.reload();
|
|
|
}else if(LoginState && !CookieS){
|
|
}else if(LoginState && !CookieS){
|
|
|
CookieS = _cookie
|
|
CookieS = _cookie
|
|
@@ -720,9 +719,9 @@ U.MD.D.getuser = function () {
|
|
|
}else {
|
|
}else {
|
|
|
window.onbeforeunload = null
|
|
window.onbeforeunload = null
|
|
|
U.alert("LoginState && _cookie != CookieS!")
|
|
U.alert("LoginState && _cookie != CookieS!")
|
|
|
- U.alert(_cookie)
|
|
|
|
|
- U.alert(CookieS)
|
|
|
|
|
- U.alert(LoginState)
|
|
|
|
|
|
|
+ window.alert(_cookie)
|
|
|
|
|
+ window.alert(CookieS)
|
|
|
|
|
+ window.alert(LoginState)
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
window.location.reload();
|
|
window.location.reload();
|
|
|
}, 1000)
|
|
}, 1000)
|
|
@@ -737,11 +736,8 @@ U.MD.D.getuser = function () {
|
|
|
isPanL = false
|
|
isPanL = false
|
|
|
}else if(res.status && res.status.status != 0){
|
|
}else if(res.status && res.status.status != 0){
|
|
|
U.UF.Cookie.del('cocorobo')
|
|
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 });
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|
|
}
|