diff --git a/Cunkebao/app/components/device-selection-dialog.tsx b/Cunkebao/app/components/device-selection-dialog.tsx index e467984f..d6c4e31e 100644 --- a/Cunkebao/app/components/device-selection-dialog.tsx +++ b/Cunkebao/app/components/device-selection-dialog.tsx @@ -269,7 +269,7 @@ export function DeviceSelectionDialog({
-
{device.memo}
+
{device.memo || "未命名设备"}
{device.status === "online" ? "在线" : "离线"} diff --git a/Cunkebao/app/workspace/moments-sync/components/device-selection-dialog.tsx b/Cunkebao/app/workspace/moments-sync/components/device-selection-dialog.tsx index 47feb6c5..38b9e0b2 100644 --- a/Cunkebao/app/workspace/moments-sync/components/device-selection-dialog.tsx +++ b/Cunkebao/app/workspace/moments-sync/components/device-selection-dialog.tsx @@ -60,7 +60,7 @@ export function DeviceSelectionDialog({ open, onOpenChange, selectedDevices, onS if (response.code === 200 && response.data.list) { const transformedDevices: Device[] = response.data.list.map(device => ({ id: device.id, - name: device.memo || device.imei || '', + name: device.memo || "未命名设备", imei: device.imei || '', wxid: device.wechatId || '', status: device.alive === 1 ? "online" : "offline",