将 NotificationHelper.ShowMessage改为具体的ShowError得方法

This commit is contained in:
2025-07-06 15:36:53 +08:00
parent b0874a4f02
commit 0980f84d09
13 changed files with 45 additions and 55 deletions

View File

@@ -114,12 +114,12 @@ public partial class SettingViewModel : ViewModelBase
using (var db = DbContext.GetInstance())
{
await db.Ado.OpenAsync();
NotificationHelper.ShowMessage("连接成功!");
NotificationHelper.ShowSuccess("连接成功!");
}
}
catch (Exception ex)
{
NotificationHelper.ShowMessage($"连接失败:{ex.Message}");
NotificationHelper.ShowError($"连接失败:{ex.Message}", ex);
}
}
}