From 2f0196ae4a685799d667f7c3ebea810a7ffa8432 Mon Sep 17 00:00:00 2001 From: peng Date: Tue, 28 Oct 2025 20:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=20-=20=E7=BB=BF=E7=BA=BF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crop-x/src/components/layouts/Navbar.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/crop-x/src/components/layouts/Navbar.tsx b/crop-x/src/components/layouts/Navbar.tsx index ef7f3de..866d095 100644 --- a/crop-x/src/components/layouts/Navbar.tsx +++ b/crop-x/src/components/layouts/Navbar.tsx @@ -266,15 +266,10 @@ const renderMenuItem = (item: MenuItem, isMenuActive: (url: string) => boolean) {item.icon} )} -
- - {item.title} - - {/* 激活菜单项下方的横条 */} - {isMenuActive(item.url) && ( -
- )} -
+ + {item.title} + + {isMenuActive(item.url) &&
} );