From 8767fababd42226842687dcb5d64e7e0b20ef14a Mon Sep 17 00:00:00 2001 From: Andste Date: Fri, 2 Feb 2018 18:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=A7=E8=BE=B9=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=A0=8F=E5=AD=90=E8=8F=9C=E5=8D=95=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E9=9C=80=E8=A6=81=E6=98=BE=E7=A4=BA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=BF=98=E9=9C=80=E5=B1=95=E5=BC=80=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果侧边栏子项只有一个为需要显示,其它都不需要显示。那么这个菜单就不需要再展开显示了。 --- .../layout/components/Sidebar/SidebarItem.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index da07831b..ecc2957e 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -1,8 +1,8 @@