fix: 聊天侧边栏未滚动

This commit is contained in:
Archer
2023-03-17 22:06:43 +08:00
parent d85b4c0945
commit e6c9ca540a
3 changed files with 76 additions and 88 deletions

View File

@@ -45,12 +45,12 @@ const Navbar = ({
flexDirection={'column'}
alignItems={'center'}
justifyContent={'center'}
onClick={() =>
!item.activeLink.includes(router.pathname) &&
onClick={() => {
if (item.link === router.pathname) return;
router.push(item.link, undefined, {
shallow: true
})
}
});
}}
cursor={'pointer'}
fontSize={'sm'}
w={'60px'}