Skip to content

Commit e58d40a

Browse files
authored
头部导航栏里的菜单无法正常渲染出来的bug (#2046)
菜单循环中没有子菜单就直接返回,没有添加到arr列表中导致arr始终是空的
1 parent f7c3d76 commit e58d40a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

web/src/components/commandMenu/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
const deepMenus = (menus) => {
5656
const arr = []
5757
menus?.forEach((menu) => {
58-
if (!menu?.children) return
5958
if (menu.children && menu.children.length > 0) {
6059
arr.push(...deepMenus(menu.children))
6160
} else {

0 commit comments

Comments
 (0)