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'); }); } });