diff --git a/assets/bootstrap/js/httpclient/httpclient.js b/assets/bootstrap/js/httpclient/httpclient.js index fe230238..75ad4a5f 100644 --- a/assets/bootstrap/js/httpclient/httpclient.js +++ b/assets/bootstrap/js/httpclient/httpclient.js @@ -44,10 +44,9 @@ function AjaxError(response) { let errCode = response.status; let errMsg = response.responseText; - if (errCode === 401) { // 跳转到登录页 - // 关闭当前界面 - parent.window.close(); - window.open("/login"); + if (errCode === 401) { + // 跳转到登录页 + window.open("/login",'_self'); return; }