From 1ece2c5a4f80d227c0c358cdc38e9e429209b7c6 Mon Sep 17 00:00:00 2001 From: fengxiangdebaozi <10845145+fengxiangdebaozi@user.noreply.gitee.com> Date: Tue, 16 Jun 2026 20:58:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=A8=E9=87=8F?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=BB=BC=E5=90=88=E7=AE=A1=E7=90=86=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=8E=92=E8=A1=8C=E6=A6=9C=E6=B3=84=E6=BC=8F=E5=88=B0?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E4=BE=A7=E8=BE=B9=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 综合管理菜单存在两个 id 相同的「用户排行榜」子项,侧边栏以 key={item.id} 渲染导致 React keyed reconciliation 失效,离开综合 管理切换到其他一级菜单时重复 key 的节点无法正确卸载,残留到新的 侧边栏。删除冗余的 adminOnly 重复项(保留的项已通过 userPath 同时 覆盖 admin/非 admin)。 Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend-web/src/core/page-layout/sidebar-menu.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend-web/src/core/page-layout/sidebar-menu.ts b/frontend-web/src/core/page-layout/sidebar-menu.ts index c343a91b..ca1c76ff 100644 --- a/frontend-web/src/core/page-layout/sidebar-menu.ts +++ b/frontend-web/src/core/page-layout/sidebar-menu.ts @@ -249,13 +249,6 @@ export const sidebarMenuItems: MenuItem[] = [ path: "/page/strategy/admin/positions", adminOnly: true, }, - { - id: "mgmt-user-leaderboard", - label: "用户排行榜", - icon: Trophy, - path: "/page/strategy/admin/user-leaderboard", - adminOnly: true, - }, { id: "mgmt-admin-scheduled-tasks", label: "定时任务管理",