温华: 添加404路由到常驻路由表
This commit is contained in:
@@ -24,7 +24,7 @@ export default function SideBar() {
|
||||
const goPage = (val: any) => {
|
||||
console.log(val);
|
||||
|
||||
navigate(val.key)
|
||||
navigate(val.key, { replace: true })
|
||||
}
|
||||
useEffect(()=>{
|
||||
getMenu()
|
||||
@@ -36,6 +36,7 @@ export default function SideBar() {
|
||||
theme="dark"
|
||||
mode="inline"
|
||||
defaultSelectedKeys={[location.pathname]}
|
||||
selectedKeys={[location.pathname]}
|
||||
items={menuItem}
|
||||
onClick={goPage}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user