Skip to content

Commit

Permalink
Update httpclient.js
Browse files Browse the repository at this point in the history
解决 chrome 打开新创被拦截的问题
参考 https://blog.csdn.net/oscar999/article/details/124505724
  • Loading branch information
zhoumengkang authored Jun 12, 2022
1 parent 4c37a7e commit 14f6853
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/bootstrap/js/httpclient/httpclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 14f6853

Please sign in to comment.