From 7c8a17bbb2562cff01da29fd2669d61e8ab55777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Mon, 25 Apr 2022 09:56:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=92=E5=BD=92?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=8D=95=E4=B8=AA=E5=AD=90=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/sidebar/SideMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/sidebar/SideMenu.vue b/src/layout/components/sidebar/SideMenu.vue index 6989199..bb18508 100644 --- a/src/layout/components/sidebar/SideMenu.vue +++ b/src/layout/components/sidebar/SideMenu.vue @@ -68,7 +68,7 @@ function getMenuItem(route, basePath = '') { if (visibleItems.length === 1) { menuItem = getMenuItem(visibleItems[0], menuItem.path) - } else { + } else if (visibleItems.length > 1) { menuItem.children = visibleItems.map((item) => getMenuItem(item, menuItem.path)) } } else {