From 06840ab17a7967d981e2f3c8294cdfa0619a949f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Wed, 13 Aug 2025 23:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E7=8A=B6=E6=80=81=20=E5=92=8C=20=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ui/shot-tab-content.tsx | 3 +++ 1 file changed, 3 insertions(+) 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]);