From 82e7502f74a3bb353ca3d7678d5fb90cb2206e89 Mon Sep 17 00:00:00 2001 From: Gargantua <124801228+catDforD@users.noreply.github.com> Date: Tue, 3 Mar 2026 15:12:15 +0800 Subject: [PATCH] fix(dashboard): stabilize sidebar customization state (#5405) (#5670) - use stable sidebar list keys to avoid vnode reuse drift - sanitize persisted opened groups against current sidebar menu - guard non-array customization keys from localStorage Co-authored-by: Gargantua <22532097@zju.edu.cn> --- .../layouts/full/vertical-sidebar/NavItem.vue | 2 +- .../full/vertical-sidebar/VerticalSidebar.vue | 50 +++++++++++--- dashboard/src/utils/sidebarCustomization.js | 65 +++++++++++++++++-- 3 files changed, 103 insertions(+), 14 deletions(-) diff --git a/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue b/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue index b46a5da5d..4051ccecd 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +++ b/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue @@ -38,7 +38,7 @@ const isItemActive = computed(() => { -