fix: selectedKeys doesnot update when select device

This commit is contained in:
yangsy
2025-08-27 10:52:10 +08:00
parent a4392da641
commit b4e49c0104

View File

@@ -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 ?? ''];
},
},
() => '选择',