修复局域网连接返回为null问题

This commit is contained in:
2026-03-28 19:49:54 +08:00
parent 4be3087de9
commit a56e360d43
7 changed files with 63 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ func (s *DeviceService) ListCandidates(currentDeviceID string) []model.Device {
current, _ := s.store.GetDevice(currentDeviceID)
currentNetworkGroupKey := strings.TrimSpace(current.NetworkGroupKey)
if currentNetworkGroupKey == "" {
return nil
return []model.Device{}
}
devices := s.store.ListDevices()