|
@ -51,7 +51,6 @@ const Sider = props => { |
|
|
}); |
|
|
}); |
|
|
}, [items]) |
|
|
}, [items]) |
|
|
|
|
|
|
|
|
console.log(openKeys); |
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Menu id="sider" mode="inline" |
|
|
<Menu id="sider" mode="inline" |
|
|
// theme={themeName || 'dark'}
|
|
|
// theme={themeName || 'dark'}
|
|
@ -62,7 +61,6 @@ const Sider = props => { |
|
|
setSelectedKeys(selectedKeys) |
|
|
setSelectedKeys(selectedKeys) |
|
|
}} |
|
|
}} |
|
|
onOpenChange={(ks) => { |
|
|
onOpenChange={(ks) => { |
|
|
console.log(ks); |
|
|
|
|
|
if (ks.length) { |
|
|
if (ks.length) { |
|
|
let nextKs = [] |
|
|
let nextKs = [] |
|
|
let lastKey = nextKs[nextKs.length - 1] |
|
|
let lastKey = nextKs[nextKs.length - 1] |
|
|