Commit bcc48c8a by zhengxiaokui

layout

parent fc5843ae
......@@ -18,7 +18,7 @@
<span slot="title">主页</span>
</el-menu-item>
<el-submenu
v-for="item in selPntMinu()"
v-for="item in selPntMinu"
:key="item.inifrm"
:index="item.inifrm"
>
......@@ -110,10 +110,14 @@ export default {
handleClose(key, keyPath) {
console.log(key, keyPath);
},
selMinu(key) {
return this.minu.filter((it) => {
return it.pntmiu === key;
});
},
computed: {
selMinu() {
return function (key) {
return this.minu.filter((it) => {
return it.pntmiu === key;
});
};
},
selPntMinu() {
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