|
|
|
|
@ -11,7 +11,7 @@ import {
|
|
|
|
|
IconExclamationCircle,
|
|
|
|
|
IconUser,
|
|
|
|
|
IconMenuFold,
|
|
|
|
|
IconMenuUnfold,
|
|
|
|
|
IconMenuUnfold
|
|
|
|
|
} from '@arco-design/web-react/icon';
|
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
|
import { useRouter } from 'next/router';
|
|
|
|
|
@ -146,8 +146,8 @@ function PageLayout({ children }: { children: ReactNode }) {
|
|
|
|
|
menuMap.current.set(route.key, { menuItem: true });
|
|
|
|
|
return (
|
|
|
|
|
<MenuItem key={route.key}>
|
|
|
|
|
<Link href={`/${route.key}`}>
|
|
|
|
|
<a>{titleDom}</a>
|
|
|
|
|
<Link href={`/${route.key}`} passHref>
|
|
|
|
|
<a suppressHydrationWarning>{titleDom}</a>
|
|
|
|
|
</Link>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
);
|
|
|
|
|
@ -185,7 +185,7 @@ function PageLayout({ children }: { children: ReactNode }) {
|
|
|
|
|
<Layout className={styles.layout}>
|
|
|
|
|
<div
|
|
|
|
|
className={cs(styles['layout-navbar'], {
|
|
|
|
|
[styles['layout-navbar-hidden']]: !showNavbar,
|
|
|
|
|
[styles['layout-navbar-hidden']]: !showNavbar
|
|
|
|
|
})}
|
|
|
|
|
>
|
|
|
|
|
<Navbar show={showNavbar} />
|
|
|
|
|
|