fix: unexpected scrollIntoView

This commit is contained in:
hamster1963 2024-10-30 17:34:02 +08:00
parent 92c3894772
commit 6c2edce5af
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
"extends": ["next/core-web-vitals", "next/typescript"], "extends": ["next/core-web-vitals", "next/typescript"],
"rules": { "rules": {
"@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-explicit-any": "off",
"@next/next/no-img-element": "off" "@next/next/no-img-element": "off",
"react-hooks/exhaustive-deps": "off"
} }
} }

View File

@ -53,7 +53,7 @@ export default function Switch({
inline: "center", inline: "center",
}); });
} }
}, [nowTag, allTag]); }, [nowTag]);
return ( return (
<div <div