diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index a8a3f91..9187510 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -56,6 +56,9 @@ export function ShotTabContent({ useEffect(() => { console.log('shotTabContent-----shotData', shotData); if (shotData.length > 0) { + // 清空检测状态 和 检测结果 + setScanState('idle'); + setDetections([]); setSelectedSegment(shotData[selectedIndex]); } }, [selectedIndex, shotData]);