From 5892148dd264326d43891b57f6c5d1a386ee01e6 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Sat, 3 Dec 2022 01:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-core/src/main/resources/templates/index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/admin-core/src/main/resources/templates/index.html b/admin-core/src/main/resources/templates/index.html index b9ecb58c..125c92e1 100644 --- a/admin-core/src/main/resources/templates/index.html +++ b/admin-core/src/main/resources/templates/index.html @@ -414,13 +414,8 @@ var ret = Common.postAjax("/logout.json"); if (ret.code == 0 || ret.code == 401) { Common.info("退出成功!"); - var host = '${request.requestURL}'.replaceAll(/\/server.*/g, ''); Common.awaitTime(1200, function () { - if('${profile!}' === 'prod' && '${studentTeacherURL!}' != '') { - window.location.href = '${studentTeacherURL!}'; - } else { - window.location.href = host + '/server'; - } + window.location.href = host + ('${profile!}' === 'prod' ? '/' : '/server'); }); } });