Skip to content

Commit 400e0bb

Browse files
authored
解决父窗口和子窗口跳转的问题
1 parent 14f6853 commit 400e0bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

assets/bootstrap/js/httpclient/httpclient.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ function AjaxError(response) {
4646

4747
if (errCode === 401) {
4848
// 跳转到登录页
49-
window.open("/login",'_self');
49+
if (window.frames.length !== parent.frames.length) {
50+
parent.window.open("/login",'_self');
51+
}else{
52+
window.open("/login",'_self');
53+
}
5054
return;
5155
}
5256

0 commit comments

Comments
 (0)