From 678c9870e7b727a5a34edf4acbb63ea3585f0470 Mon Sep 17 00:00:00 2001 From: ElderJames Date: Mon, 12 May 2025 23:02:04 +0800 Subject: [PATCH] chore: update AntDesign package to version 1.4.0 and improve message handling in SettingDrawer --- src/layout/src/AntDesign.ProLayout.csproj | 2 +- src/layout/src/SettingDrawer/SettingDrawer.razor.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/src/AntDesign.ProLayout.csproj b/src/layout/src/AntDesign.ProLayout.csproj index 3d5084f..7d72992 100644 --- a/src/layout/src/AntDesign.ProLayout.csproj +++ b/src/layout/src/AntDesign.ProLayout.csproj @@ -26,7 +26,7 @@ - + diff --git a/src/layout/src/SettingDrawer/SettingDrawer.razor.cs b/src/layout/src/SettingDrawer/SettingDrawer.razor.cs index 8ecb2e4..ae5126f 100644 --- a/src/layout/src/SettingDrawer/SettingDrawer.razor.cs +++ b/src/layout/src/SettingDrawer/SettingDrawer.razor.cs @@ -116,7 +116,7 @@ private async Task UpdateColor(string color) private async Task UpdateStyle() { - _ = Message.Loading(new MessageConfig + Message.Loading(new MessageConfig { Content = "Loading theme", Duration = 1 @@ -151,7 +151,7 @@ private async Task CopySetting(MouseEventArgs args) { var json = JsonSerializer.Serialize(SettingState.Value); await JsInvokeAsync(JSInteropConstants.Copy, json); - await Message.Success("copy success, please replace defaultSettings in wwwroot/appsettings.json"); + Message.Success("copy success, please replace defaultSettings in wwwroot/appsettings.json"); } } } \ No newline at end of file