Browse Source

三级菜单

dev
CODE 1 year ago
parent
commit
fad1f14f12
  1. 2
      web/client/src/layout/components/sider/index.js

2
web/client/src/layout/components/sider/index.js

@ -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]

Loading…
Cancel
Save