fix: scroll behavior

This commit is contained in:
hamster1963 2024-12-04 17:50:00 +08:00
parent b21e9d12d5
commit 8042edaeff

View File

@ -25,7 +25,7 @@ export default function ServerDetailClient({
const [hasHistory, setHasHistory] = useState(false);
useEffect(() => {
window.scrollTo(0, 0);
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
}, []);
useEffect(() => {