Commit bcc48c8a by zhengxiaokui

layout

parent fc5843ae
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<span slot="title">主页</span> <span slot="title">主页</span>
</el-menu-item> </el-menu-item>
<el-submenu <el-submenu
v-for="item in selPntMinu()" v-for="item in selPntMinu"
:key="item.inifrm" :key="item.inifrm"
:index="item.inifrm" :index="item.inifrm"
> >
...@@ -110,10 +110,14 @@ export default { ...@@ -110,10 +110,14 @@ export default {
handleClose(key, keyPath) { handleClose(key, keyPath) {
console.log(key, keyPath); console.log(key, keyPath);
}, },
selMinu(key) { },
return this.minu.filter((it) => { computed: {
return it.pntmiu === key; selMinu() {
}); return function (key) {
return this.minu.filter((it) => {
return it.pntmiu === key;
});
};
}, },
selPntMinu() { selPntMinu() {
return this.minu.filter((it) => { return this.minu.filter((it) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment