From 43ea6cdea9cfeedd17794a197e42005c2a27ff93 Mon Sep 17 00:00:00 2001 From: Gargantua <22532097@zju.edu.cn> Date: Mon, 2 Mar 2026 17:13:22 +0800 Subject: [PATCH] fix(dashboard): stabilize sidebar customization state (#5405) - 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 --- .../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 b46a5da5db..4051ccecd4 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(() => { -