From 2891a40dc469f89ef0d6c9daf024d42eb6bbf17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E6=B8=85=E7=88=BD?= Date: Wed, 16 Apr 2025 14:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87memo=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=9C=AA=E8=AE=BE=E7=BD=AE=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=BA?= =?UTF-8?q?=E6=9C=AA=E5=91=BD=E5=90=8D=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/app/components/device-selection-dialog.tsx | 2 +- Cunkebao/app/devices/page.tsx | 2 +- .../moments-sync/components/device-selection-dialog.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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",