From cd55e024ff816933a83435de3fe3ff820ad2388f Mon Sep 17 00:00:00 2001 From: chenxf Date: Mon, 5 Jan 2026 16:19:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sidebar):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E7=BB=84=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除Item.vue中未使用的num1和num2属性 - 为el-menu-item和el-submenu组件添加基于meta.id的索引支持 - 移除未使用的Logo组件引用 --- src/layout/components/Sidebar/Item.vue | 2 +- src/layout/components/Sidebar/SidebarItem.vue | 4 ++-- src/layout/components/Sidebar/index.vue | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 83de5fe..5305b49 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -31,7 +31,7 @@ export default { } }, render(h, context) { - const { icon, title, routePath, num1, num2 } = context.props + const { icon, title } = context.props const vnodes = [] if (icon) { vnodes.push() diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 9b95e00..d6cd62a 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -2,7 +2,7 @@