修复删除设备时的错误

This commit is contained in:
2025-10-01 18:02:33 +08:00
parent eb4bee8963
commit 03e92811dd
4 changed files with 33 additions and 1 deletions

View File

@@ -137,6 +137,7 @@ public partial class DevicesViewModel : ViewModelBase, INavigatable
if (addDto != null && addDto.Device != null && _notificationService != null)
{
_notificationService.ShowSuccess($"设备添加成功:{addDto.Device.Name}");
}
else if (_notificationService != null)
{