|
|
@ -30,7 +30,7 @@ export default function SideMenu() { |
|
|
|
const location = useLocation(); |
|
|
|
const onClick: MenuProps["onClick"] = e => { |
|
|
|
console.log("click menu----", e); |
|
|
|
navigate(e.key) |
|
|
|
navigate(e.key); |
|
|
|
}; |
|
|
|
return ( |
|
|
|
<div className="h-[100vh] bg-primary flex flex-col"> |
|
|
@ -40,12 +40,12 @@ export default function SideMenu() { |
|
|
|
onClick={onClick} |
|
|
|
style={{ width: "100%", backgroundColor: "transparent", color: "#fff" }} |
|
|
|
defaultSelectedKeys={["1"]} |
|
|
|
defaultOpenKeys={["sub1"]} |
|
|
|
defaultOpenKeys={["measure"]} |
|
|
|
selectedKeys={[location.pathname]} |
|
|
|
mode="inline" |
|
|
|
items={items} |
|
|
|
/> |
|
|
|
<p className="text-white/[0.7] text-center mt-auto mb-4 text-lg">V1.0</p> |
|
|
|
<p className="text-white/[0.7] text-center mt-auto mb-4 text-lg">V1.0</p> |
|
|
|
</div> |
|
|
|
); |
|
|
|
} |