From a3b4a1fc7d227b6d0a70154c7342045413549f1f Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 21 Apr 2024 19:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E6=97=A5=E5=BF=97=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E7=94=9F=E6=88=90=E7=9A=84=E5=87=86=E7=A1=AE=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jeesite/modules/sys/utils/LogUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java b/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java index 808dbf34..18b2ce57 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/utils/LogUtils.java @@ -203,10 +203,10 @@ public class LogUtils { if (StringUtils.startsWith(href, contextPath)){ href = StringUtils.substringAfter(href, contextPath); } - if (StringUtils.startsWith(href, Global.getAdminPath())){ + if (StringUtils.startsWith(href, Global.getAdminPath() + "/")){ href = StringUtils.substringAfter(href, Global.getAdminPath()); } - if (StringUtils.startsWith(href, Global.getFrontPath())){ + if (StringUtils.startsWith(href, Global.getFrontPath() + "/")){ href = StringUtils.substringAfter(href, Global.getFrontPath()); } log.setLogTitle(Static.menuService.getMenuNamePath(href, permission));