mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: scroll behavior
This commit is contained in:
parent
b21e9d12d5
commit
8042edaeff
@ -25,7 +25,7 @@ export default function ServerDetailClient({
|
|||||||
const [hasHistory, setHasHistory] = useState(false);
|
const [hasHistory, setHasHistory] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user