From e58d40ab8332e25f45dba60dc0bfffb047802571 Mon Sep 17 00:00:00 2001 From: zayn <972858472@qq.com> Date: Fri, 20 Jun 2025 13:36:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E9=83=A8=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E8=8F=9C=E5=8D=95=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=B8=B2=E6=9F=93=E5=87=BA=E6=9D=A5=E7=9A=84bug=20(#2?= =?UTF-8?q?046)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 菜单循环中没有子菜单就直接返回,没有添加到arr列表中导致arr始终是空的 --- web/src/components/commandMenu/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/web/src/components/commandMenu/index.vue b/web/src/components/commandMenu/index.vue index 27ef93fc..4ab4e205 100644 --- a/web/src/components/commandMenu/index.vue +++ b/web/src/components/commandMenu/index.vue @@ -55,7 +55,6 @@ const deepMenus = (menus) => { const arr = [] menus?.forEach((menu) => { - if (!menu?.children) return if (menu.children && menu.children.length > 0) { arr.push(...deepMenus(menu.children)) } else {