From f4db7eaaa85d3fdae01794c9dbeb5867015611eb Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 3 Sep 2026 16:48:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20useEffect=20=E4=BE=9D=E8=B5=96=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E5=8A=A0=E5=85=A5=20searchParams=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20SPA=20=E5=86=85=E8=B7=B3=E8=BD=AC=E4=B8=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/pages/voices/VoiceLibrary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/pages/voices/VoiceLibrary.tsx b/apps/web/src/pages/voices/VoiceLibrary.tsx index 22af085b4..c2828e2be 100755 --- a/apps/web/src/pages/voices/VoiceLibrary.tsx +++ b/apps/web/src/pages/voices/VoiceLibrary.tsx @@ -167,7 +167,7 @@ const VoiceLibrary: React.FC = () => { setActiveTab("material") setUploadOpen(true) } - }, []) // eslint-disable-line react-hooks/exhaustive-deps + }, [searchParams, setActiveTab, setUploadOpen]) // ── 切换 Tab 时停止播放 ─────────────────────────────── const handleTabChange = useCallback(