perf: navbar

This commit is contained in:
archer
2023-08-07 11:23:39 +08:00
parent b6e156db26
commit e190ee92e8
26 changed files with 6 additions and 7021 deletions

View File

@@ -118,9 +118,13 @@ const Navbar = ({ unread }: { unread: number }) => {
}
: {
color: 'myGray.500',
backgroundColor: 'transparent',
onClick: () => router.push(item.link)
backgroundColor: 'transparent'
})}
{...(item.link !== router.asPath
? {
onClick: () => router.push(item.link)
}
: {})}
>
<MyIcon
name={