Skip to content

Commit

Permalink
解决父窗口和子窗口跳转的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoumengkang authored Jun 12, 2022
1 parent 14f6853 commit 400e0bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/bootstrap/js/httpclient/httpclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 400e0bb

Please sign in to comment.