From 6f0191577f1344e68b1884c16f152518932504b6 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Thu, 10 Oct 2024 08:29:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sidebar/components/SidebarMenu.vue | 77 +++++++++++-------- .../Sidebar/components/SidebarMenuItem.vue | 26 ++++--- 2 files changed, 58 insertions(+), 45 deletions(-) diff --git a/src/layout/components/Sidebar/components/SidebarMenu.vue b/src/layout/components/Sidebar/components/SidebarMenu.vue index 526a24ce..5936a1f9 100644 --- a/src/layout/components/Sidebar/components/SidebarMenu.vue +++ b/src/layout/components/Sidebar/components/SidebarMenu.vue @@ -9,7 +9,7 @@ :active-text-color="variables['menu-active-text']" :unique-opened="false" :collapse-transition="false" - :mode="mode" + :mode="menuMode" @open="handleOpen" @close="handleClose" > @@ -17,72 +17,83 @@ v-for="route in menuList" :key="route.path" :item="route" - :base-path="resolvePath(route.path)" + :base-path="getFullPath(route.path)" />