设备memo字段未设置时显示为未命名设备

This commit is contained in:
柳清爽
2025-04-16 14:02:50 +08:00
parent 6dcc78153a
commit 2891a40dc4
3 changed files with 3 additions and 3 deletions

View File

@@ -269,7 +269,7 @@ export function DeviceSelectionDialog({
<div className="flex-1 min-w-0">
<div className="flex items-center justify-between mb-1">
<label htmlFor={`device-${device.id}`} className="font-medium truncate cursor-pointer">
{device.name}
{device.name || "未命名设备"}
</label>
<div
className={`px-2 py-1 rounded-full text-xs ${