diff --git a/assets/bootstrap/js/httpclient/httpclient.js b/assets/bootstrap/js/httpclient/httpclient.js index 75ad4a5f..bb324952 100644 --- a/assets/bootstrap/js/httpclient/httpclient.js +++ b/assets/bootstrap/js/httpclient/httpclient.js @@ -46,7 +46,11 @@ function AjaxError(response) { if (errCode === 401) { // 跳转到登录页 - window.open("/login",'_self'); + if (window.frames.length !== parent.frames.length) { + parent.window.open("/login",'_self'); + }else{ + window.open("/login",'_self'); + } return; }