From 400e0bb3f2a1898c12f89657d7857516f21d9e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=A2=A6=E5=BA=B7?= Date: Sun, 12 Jun 2022 22:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=88=B6=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=92=8C=E5=AD=90=E7=AA=97=E5=8F=A3=E8=B7=B3=E8=BD=AC=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/bootstrap/js/httpclient/httpclient.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/bootstrap/js/httpclient/httpclient.js b/assets/bootstrap/js/httpclient/httpclient.js index 75ad4a5f..bb324952 100644 --- a/assets/bootstrap/js/httpclient/httpclient.js +++ b/assets/bootstrap/js/httpclient/httpclient.js @@ -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; }