From 4090c7e6c545a246dc8fc1973723208e6afdfa2c Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 11 Mar 2026 14:34:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=92=8CIP=E5=9C=B0=E5=9D=80=E7=BB=84?= =?UTF-8?q?=E5=90=88=E4=BD=9C=E4=B8=BA=E8=AE=BE=E5=A4=87=E6=A0=91=E4=B8=AD?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=8A=82=E7=82=B9=E7=9A=84key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/device/device-tree/device-tree.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/device/device-tree/device-tree.vue b/src/components/device/device-tree/device-tree.vue index 38ba04e..dda861b 100644 --- a/src/components/device/device-tree/device-tree.vue +++ b/src/components/device/device-tree/device-tree.vue @@ -352,7 +352,7 @@ const lineDeviceTreeData = computed>(() => const device = dev as NdmDeviceResultVO; return { label: `${device.name}`, - key: `${device.id}`, + key: `${device.name}${device.ipAddress}`, prefix: () => renderDeviceNodePrefix(device, stationCode), suffix: () => `${device.ipAddress}`, // 当选择设备时,能获取到设备的所有信息,以及设备所属的车站 @@ -386,13 +386,13 @@ const stationDeviceTreeData = computed(() => { children: clusters.map((device) => { return { label: `${device.name}`, - key: `${device.id}`, + key: `${device.name}${device.ipAddress}`, prefix: () => renderDeviceNodePrefix(device, stationCode), suffix: () => `${device.ipAddress}`, children: singletons.map((device) => { return { label: `${device.name}`, - key: `${device.id}`, + key: `${device.name}${device.ipAddress}`, prefix: () => renderDeviceNodePrefix(device, stationCode), suffix: () => `${device.ipAddress}`, stationCode, @@ -414,7 +414,7 @@ const stationDeviceTreeData = computed(() => { children: stationDevices[deviceType].map((device) => { return { label: `${device.name}`, - key: `${device.id}`, + key: `${device.name}${device.ipAddress}`, prefix: () => renderDeviceNodePrefix(device, stationCode), suffix: () => `${device.ipAddress}`, stationCode,