forked from 77media/video-flow
切换 清空检测状态 和 检测结果
This commit is contained in:
parent
7c16179288
commit
06840ab17a
@ -56,6 +56,9 @@ export function ShotTabContent({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('shotTabContent-----shotData', shotData);
|
console.log('shotTabContent-----shotData', shotData);
|
||||||
if (shotData.length > 0) {
|
if (shotData.length > 0) {
|
||||||
|
// 清空检测状态 和 检测结果
|
||||||
|
setScanState('idle');
|
||||||
|
setDetections([]);
|
||||||
setSelectedSegment(shotData[selectedIndex]);
|
setSelectedSegment(shotData[selectedIndex]);
|
||||||
}
|
}
|
||||||
}, [selectedIndex, shotData]);
|
}, [selectedIndex, shotData]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user