@namespace YBDevice.Web @using YBDevice.Application @inject ISystemService _systemService @inherits LayoutComponentBase @Body @code { protected override async Task OnInitializedAsync() { await _systemService.GetMenuListAsync(); } private readonly MenuDataItem[] _menuData = { new MenuDataItem { Path = "/", Name = "welcome", Key = "welcome", Icon = "smile", } }; public LinkItem[] Links { get; set; } = { new LinkItem { Key = "Ant Design Blazor", Title = "Ant Design Blazor", Href = "https://antblazor.com", BlankTarget = true, }, new LinkItem { Key = "github", Title = (RenderFragment)( @), Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor", BlankTarget = true, }, new LinkItem { Key = "Blazor", Title = "Blazor", Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987", BlankTarget = true, } }; }