Skip to content

Commit 14f6853

Browse files
authored
Update httpclient.js
解决 chrome 打开新创被拦截的问题 参考 https://blog.csdn.net/oscar999/article/details/124505724
1 parent 4c37a7e commit 14f6853

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

assets/bootstrap/js/httpclient/httpclient.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ function AjaxError(response) {
4444
let errCode = response.status;
4545
let errMsg = response.responseText;
4646

47-
if (errCode === 401) { // 跳转到登录页
48-
// 关闭当前界面
49-
parent.window.close();
50-
window.open("/login");
47+
if (errCode === 401) {
48+
// 跳转到登录页
49+
window.open("/login",'_self');
5150
return;
5251
}
5352

0 commit comments

Comments
 (0)