fix: selectedKeys doesnot update when select device
This commit is contained in:
@@ -117,9 +117,10 @@ const renderDeviceNodePrefix = (device: NdmDeviceResultVO, stationCode: string)
|
|||||||
size: 'tiny',
|
size: 'tiny',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
// 更新选中的设备和车站编码
|
// 选择设备
|
||||||
selectedDevice.value = device;
|
selectedDevice.value = device;
|
||||||
selectedStationCode.value = stationCode;
|
selectedStationCode.value = stationCode;
|
||||||
|
selectedKeys.value = [device.id ?? ''];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
() => '选择',
|
() => '选择',
|
||||||
|
|||||||
Reference in New Issue
Block a user