perf: search prompt
This commit is contained in:
@@ -35,7 +35,7 @@ const Layout = ({ children, isPcDevice }: { children: JSX.Element; isPcDevice: b
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box h={'100%'} overflow={'overlay'} bg={'gray.100'}>
|
||||
<Box h={'100%'} overflowY={'auto'} bg={'gray.100'}>
|
||||
{isPc ? (
|
||||
pcUnShowLayoutRoute[router.pathname] ? (
|
||||
<Auth>{children}</Auth>
|
||||
|
||||
@@ -102,9 +102,7 @@ const Navbar = () => {
|
||||
justifyContent={'center'}
|
||||
onClick={() => {
|
||||
if (item.link === router.asPath) return;
|
||||
router.push(item.link, undefined, {
|
||||
shallow: true
|
||||
});
|
||||
router.push(item.link);
|
||||
}}
|
||||
cursor={'pointer'}
|
||||
w={'60px'}
|
||||
|
||||
Reference in New Issue
Block a user