mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Update Switch.tsx
This commit is contained in:
parent
f92b1771cb
commit
ab5d2f356b
@ -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 (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user