From 9724df30bf06da74969ab043ef01955f1abf1f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=83=E5=BD=A9=E6=9E=AB=E5=8F=B6?= <424235748@qq.com> Date: Sun, 23 Mar 2025 07:52:30 +0000 Subject: [PATCH] =?UTF-8?q?update=20app/admin/view/error/401.html.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=EF=BC=8C=E5=BD=93url?= =?UTF-8?q?=E4=B8=AD=E4=B8=8D=E5=8C=85=E5=90=AB.php=EF=BC=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=90=8E=E4=BE=9D=E7=84=B6=E6=98=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 七彩枫叶 <424235748@qq.com> --- app/admin/view/error/401.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/admin/view/error/401.html b/app/admin/view/error/401.html index 07862acd..508a941c 100644 --- a/app/admin/view/error/401.html +++ b/app/admin/view/error/401.html @@ -53,7 +53,11 @@ document.getElementById("back").onclick=function(){ data = JSON.stringify(data); sessionStorage.setItem('swiftadmin_template',data); } - top.window.location.replace(href.substring(0,href.indexOf('.php')+4)); + if(href.indexOf('.php')=='-1'){ + top.window.location.replace(href.match(/^[^:]+:\/\/[^/]+/)[0]+'/admin/'); + }else{ + top.window.location.replace(href.substring(0,href.indexOf('.php')+4)); + } } \ No newline at end of file -- Gitee