修改可空类型

This commit is contained in:
陈淳
2023-01-06 10:15:37 +08:00
parent b7c9b84449
commit 576397a042
29 changed files with 82 additions and 68 deletions

View File

@@ -138,7 +138,7 @@ namespace Yi.Framework.Model.RABC.Entitys
//开头大写
r.Name = routerName?.First().ToString().ToUpper() + routerName?.Substring(1);
r.Path = m.Router;
r.Path = m.Router!;
r.Hidden = !m.IsShow ?? false;
@@ -162,18 +162,18 @@ namespace Yi.Framework.Model.RABC.Entitys
r.Redirect = "noRedirect";
r.AlwaysShow = true;
r.Component = m.Component;
r.Component = m.Component!;
r.AlwaysShow = false;
}
r.Meta = new Meta
{
Title = m.MenuName,
Icon = m.MenuIcon,
Title = m.MenuName!,
Icon = m.MenuIcon!,
NoCache = !m.IsCache ?? true
};
if (m.IsLink ?? false)
{
r.Meta.link = m.Router;
r.Meta.link = m.Router!;
r.AlwaysShow = false;
}