给Menu菜单绑定对应的数据

This commit is contained in:
2025-06-30 13:06:51 +08:00
parent 6aa17e7396
commit edd4798e09
10 changed files with 177 additions and 35 deletions

View File

@@ -69,7 +69,10 @@ public partial class App : Application
InitMenu().Await((e) =>
{
NotificationHelper.ShowMessage($"初始化主菜单失败:{e.Message}");
}, () => { });
}, () =>
{
MessageHelper.SendLoadMessage(LoadTypes.Menu);
});
MainWindow = Services.GetRequiredService<MainView>();
MainWindow.Show();