/// <summary> /// OnInitialized 方法 /// </summary> protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); Items = await MenusDataGerator.GetTopItemsAsync(Localizer); IconItems = await MenusDataGerator.GetTopIconItemsAsync(Localizer); SideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer); IconSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer); WidgetIconSideMenuItems = await MenusDataGerator.GetWidgetIconSideMenuItemsAsync(Localizer); CollapsedIconSideMenuItems = await MenusDataGerator.GetCollapsedIconSideMenuItemsAsync(Localizer); DisabledMenuItems = await MenusDataGerator.GetDisabledMenuItemsAsync(Localizer); DynamicSideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer); }
private async Task ResetMenu() { DynamicSideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer); }
private async Task UpdateMenu() { DynamicSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer); }
/// <summary> /// OnInitializedAsync 方法 /// </summary> /// <returns></returns> protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); IconSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer); }