修复清除选择设备后,地图高亮没清除的bug
This commit is contained in:
@@ -466,6 +466,7 @@ const SCADADeviceList: React.FC<SCADADeviceListProps> = ({
|
|||||||
// 清除选择
|
// 清除选择
|
||||||
const handleClearSelection = useCallback(() => {
|
const handleClearSelection = useCallback(() => {
|
||||||
setInternalSelection([]);
|
setInternalSelection([]);
|
||||||
|
setHighlightFeatures([]);
|
||||||
setPendingSelection([]);
|
setPendingSelection([]);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user