diff --git a/src/components/device-tree.vue b/src/components/device-tree.vue index f914969..c37dd9b 100644 --- a/src/components/device-tree.vue +++ b/src/components/device-tree.vue @@ -117,9 +117,10 @@ const renderDeviceNodePrefix = (device: NdmDeviceResultVO, stationCode: string) size: 'tiny', type: 'info', onClick: () => { - // 更新选中的设备和车站编码 + // 选择设备 selectedDevice.value = device; selectedStationCode.value = stationCode; + selectedKeys.value = [device.id ?? '']; }, }, () => '选择',