This commit is contained in:
mengkang.zmk
2022-06-16 14:09:09 +08:00
parent 400e0bb3f2
commit dd19eab5d5
2 changed files with 10 additions and 4 deletions

View File

@@ -132,8 +132,11 @@
okay: { okay: {
text: '关闭', text: '关闭',
action: function () { action: function () {
parent.window.close(); if (window.frames.length !== parent.frames.length) {
window.open("/login"); parent.window.open("/login",'_self');
}else{
window.open("/login",'_self');
}
} }
} }
} }

View File

@@ -281,8 +281,11 @@
$.cookie('_nav_title_', ''); $.cookie('_nav_title_', '');
$.cookie('_login_token_', ''); $.cookie('_login_token_', '');
parent.window.close(); if (window.frames.length !== parent.frames.length) {
window.open("/login"); parent.window.open("/login",'_self');
}else{
window.open("/login",'_self');
}
}, },
function (response) { function (response) {
AjaxError(response); AjaxError(response);