From e20fd616383bb81f82ee6deeefe4a8ec31e131d7 Mon Sep 17 00:00:00 2001 From: yuchenglong Date: Wed, 26 Nov 2025 15:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=A1=B5=E9=9D=A2=E5=8D=B8?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E7=9A=84=E6=B8=85=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/U1/u1.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/pages/U1/u1.tsx b/src/pages/U1/u1.tsx index 1b23165..01ce539 100644 --- a/src/pages/U1/u1.tsx +++ b/src/pages/U1/u1.tsx @@ -93,15 +93,6 @@ const U1: React.FC = () => { }; }, [reading, navigate]); - useEffect(() => { - return () => { - // 页面卸载时清理 - if (timerRef.current) clearTimeout(timerRef.current); - timerRef.current = null; - if (reading) window.electronAPI.stopIdCardListen().catch(() => {}); - }; - }, [reading]); - return (