mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed some scroll issues
This commit is contained in:
parent
58676ac1d5
commit
677dce9721
3 changed files with 25 additions and 10 deletions
|
@ -134,6 +134,10 @@ const NodeLayoutUnconnected: FC<IProps> = memo(
|
|||
return () => nodeSetCoverImage(null);
|
||||
}, [nodeSetCoverImage, node.cover]);
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, [id]);
|
||||
|
||||
return (
|
||||
<>
|
||||
{createNodeBlock(head)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue