This commit is contained in:
2025-10-20 22:47:22 +08:00
parent 7ad1b7d5e1
commit b980f989d8
17 changed files with 131 additions and 82 deletions

View File

@@ -132,7 +132,7 @@ public partial class DevicesViewModel : ViewModelBase, INavigatable
// 添加null检查
if (_wpfDataService != null && _wpfDataService.DeviceDataService != null)
{
var addDto = await _wpfDataService.DeviceDataService.AddDevice(dto);
var addDto = await _wpfDataService.DeviceDataService.AddDeviceAsync(dto);
// 添加null检查
if (addDto != null && addDto.Device != null && _notificationService != null)