fix(3d): animation error while switch page

This commit is contained in:
xfy
2025-05-23 02:38:52 +08:00
parent bbc4ba4eff
commit 32a931eaea
2 changed files with 15 additions and 0 deletions

View File

@ -52,7 +52,11 @@ const parentIdChecker = (el: HTMLElement | null): boolean => {
const HeadBar = () => {
const [showMenu, setShowMenu] = useState(false);
const resetNavbarHoverItems = useStore(
(state) => state.resetNavbarHoverItems,
);
const handleClick = () => {
resetNavbarHoverItems();
setShowMenu((showMenu) => !showMenu);
};