From ab5d2f356b41a8f7de3029035fa92f8612c2c2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?= <71394853+hamster1963@users.noreply.github.com> Date: Tue, 31 Dec 2024 20:17:06 +0800 Subject: [PATCH] Update Switch.tsx --- components/Switch.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Switch.tsx b/components/Switch.tsx index fa025a3..f819512 100644 --- a/components/Switch.tsx +++ b/components/Switch.tsx @@ -62,7 +62,7 @@ export default function Switch({ w: currentTagElement.offsetWidth, }) } - }, [nowTag, allTag]) + }, [nowTag]) // 处理选中标签的自动滚动 useEffect(() => { @@ -82,7 +82,7 @@ export default function Switch({ behavior: 'smooth' }) } - }, [nowTag, allTag]) + }, [nowTag]) return (