From 708409103b454800350a07e5641b39d964c4a5c8 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Mon, 3 Mar 2025 14:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=BA=A7=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/Sidebar/Item.vue | 17 +---------------- .../src/layout/components/Sidebar/SidebarItem.vue | 11 +++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/acupuncture-前台/src/layout/components/Sidebar/Item.vue b/acupuncture-前台/src/layout/components/Sidebar/Item.vue index 40137897..1a0708ff 100644 --- a/acupuncture-前台/src/layout/components/Sidebar/Item.vue +++ b/acupuncture-前台/src/layout/components/Sidebar/Item.vue @@ -17,23 +17,8 @@ export default { const { icon, title } = context.props; const vnodes = []; - // if (icon) { - // // vnodes.push(); - // vnodes.push(); - // } - if (title) { - console.log("title", title); - - if (title.length > 5) { - vnodes.push( - - {title} - - ); - } else { - vnodes.push({title}); - } + vnodes.push({title}); } return vnodes; diff --git a/acupuncture-前台/src/layout/components/Sidebar/SidebarItem.vue b/acupuncture-前台/src/layout/components/Sidebar/SidebarItem.vue index 031bf419..0b2c937e 100644 --- a/acupuncture-前台/src/layout/components/Sidebar/SidebarItem.vue +++ b/acupuncture-前台/src/layout/components/Sidebar/SidebarItem.vue @@ -146,4 +146,15 @@ export default { .div-img-gl { display: none; } +.nest-menu .el-menu-item { + height: 40px !important; + line-height: 40px !important; +} + +#app .sidebar-container .nest-menu .is-active { + background-color: #fff !important; +} +#app .sidebar-container .nest-menu .is-active:hover { + color: #fff !important; +}