@inherits LayoutComponentBase @* @page "/manage/setting" *@ @layout MainLayout
@Body
@inject NavigationManager Navigation @inject ISettingManuDao settingManuDao; @inject Toolbelt.Blazor.I18nText.I18nText I18nText; @code { private I18nText.local myText = new I18nText.local(); RadzenPanelMenu panelMenu; List menuItems = new(); protected override async Task OnInitializedAsync() { myText = await I18nText.GetTextTableAsync(this); string culture = I18nText.GetCurrentLanguageAsync().Result == "en-US" ? "en" : "zh-CN"; ; menuItems = await settingManuDao.GetMenuItemsAsync(culture); } // async void jump2Page(string path) // { // Navigation.NavigateTo(path); // //可以在这里添加其他逻辑,例如记录导航历史或更新状态 // Console.WriteLine($"Navigating to: {path}"); // } }