This commit is contained in:
2023-06-30 14:54:43 +08:00
parent a7ca868a5f
commit c0c69eb602
14 changed files with 840 additions and 13 deletions
+3
View File
@@ -80,6 +80,9 @@ func buildMenuTree(menuIds []int64, menuData []*model.AdminMenu) []*roleResponse
// 构建菜单树
for _, menu := range menuData {
if menuMap[menu.MenuId] == nil {
continue
}
if menu.ParentId == 0 {
if menuMap[menu.MenuId] == nil {
continue