From e65380fe3b57334f4a48100582a66f5b0c2e7068 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 24 Nov 2024 17:46:50 +0800 Subject: [PATCH] fix: sidebar menu items issue --- src/layouts/components/Sidebar.vue | 3 ++- src/layouts/components/TabsView.vue | 1 + src/router/index.ts | 9 ++++---- src/store/modules/layout.ts | 34 ++++++++++++++++------------- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/layouts/components/Sidebar.vue b/src/layouts/components/Sidebar.vue index dac0c74a0924d..4a8c4f0caefe5 100644 --- a/src/layouts/components/Sidebar.vue +++ b/src/layouts/components/Sidebar.vue @@ -89,6 +89,7 @@ onBeforeMount(async () => { if (isPro()) { await store.dispatch('system/getCustomize'); } + console.debug(menuItems.value); }); defineOptions({ name: 'ClSidebar' }); @@ -146,7 +147,7 @@ defineOptions({ name: 'ClSidebar' }); :default-openeds="openedIndexes" @select="onMenuItemClick" > -