feat: 流优化

This commit is contained in:
Archer
2023-03-09 10:09:49 +08:00
parent 16775430ea
commit 7807b26707
8 changed files with 203 additions and 93 deletions

View File

@@ -46,6 +46,7 @@ const Navbar = ({
alignItems={'center'}
justifyContent={'center'}
onClick={() =>
!item.activeLink.includes(router.pathname) &&
router.push(item.link, undefined, {
shallow: true
})