mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-24 05:16:56 +00:00
@@ -55,7 +55,6 @@
|
|||||||
const deepMenus = (menus) => {
|
const deepMenus = (menus) => {
|
||||||
const arr = []
|
const arr = []
|
||||||
menus?.forEach((menu) => {
|
menus?.forEach((menu) => {
|
||||||
if (!menu?.children) return
|
|
||||||
if (menu.children && menu.children.length > 0) {
|
if (menu.children && menu.children.length > 0) {
|
||||||
arr.push(...deepMenus(menu.children))
|
arr.push(...deepMenus(menu.children))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user