Skip to content

Commit 9659b37

Browse files
committed
[fix] 修复菜单设置不隐藏问题
1 parent 74447c1 commit 9659b37

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

Ape.Volo.Business/Permission/MenuService.cs

+4-18
Original file line numberDiff line numberDiff line change
@@ -305,26 +305,12 @@ public async Task<List<MenuTreeVo>> BuildTreeAsync(long userId)
305305
IsDeleted = m.IsDeleted,
306306
Id = m.Id,
307307
CreateTime = m.CreateTime,
308-
CreateBy = m.CreateBy
308+
CreateBy = m.CreateBy,
309+
Cache = m.Cache,
310+
Hidden = m.Hidden
309311
},
310312
(m, rm) => roleIds.Contains(rm.RoleId) && m.Type != (int)MenuType.Button
311-
, (m, rm) => new
312-
{
313-
m.Title,
314-
m.Path,
315-
m.Permission,
316-
m.IFrame,
317-
m.Component,
318-
m.ComponentName,
319-
PId = m.ParentId,
320-
MenuSort = m.Sort,
321-
m.Icon,
322-
m.Type,
323-
m.IsDeleted,
324-
m.Id,
325-
m.CreateBy,
326-
m.CreateTime
327-
},
313+
, null,
328314
"sort asc");
329315
var menuListChild = TreeHelper<MenuDto>.ListToTrees(menuList, "Id", "ParentId", 0);
330316
return await BuildAsync(menuListChild);

0 commit comments

Comments
 (0)