添加日志管理动态多级菜单

This commit is contained in:
橙子
2022-10-01 15:04:35 +08:00
parent 40dddb3316
commit 8f0327604f
4 changed files with 115 additions and 2 deletions

View File

@@ -38,7 +38,16 @@ namespace Yi.Framework.Model.Models
{
r.Redirect = "noRedirect";
r.AlwaysShow = true;
r.Component = "Layout";
//判断是否为最顶层的路由
if (0==m.ParentId)
{
r.Component = "Layout";
}
else
{
r.Component = "ParentView";
}
}
if (m.MenuType == MenuTypeEnum.Menu.GetHashCode())
{