|
@@ -195,36 +195,17 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- // menu_left() {
|
|
|
|
- // return this.$router.options.routes[0].children.filter(
|
|
|
|
- // (item) => !item.hidden
|
|
|
|
- // );
|
|
|
|
- // },
|
|
|
|
menu_left() {
|
|
menu_left() {
|
|
- let arr1 = this.$router.options.routes[0].children.filter(
|
|
|
|
|
|
+ return this.$router.options.routes[0].children.filter(
|
|
(item) => !item.hidden
|
|
(item) => !item.hidden
|
|
);
|
|
);
|
|
- let arr11 = arr1.map((e)=>({path:e.path ,id:e.id,name:e.name})).slice(0,10)
|
|
|
|
- console.log('arr11',arr11)
|
|
|
|
- return arr11;
|
|
|
|
},
|
|
},
|
|
|
|
+
|
|
menu_right() {
|
|
menu_right() {
|
|
- let arr2 = this.$router.options.routes[1].children.filter(
|
|
|
|
|
|
+ return this.$router.options.routes[1].children.filter(
|
|
(item) => !item.hidden
|
|
(item) => !item.hidden
|
|
);
|
|
);
|
|
- console.log('arr2',arr2)
|
|
|
|
- return arr2;
|
|
|
|
},
|
|
},
|
|
- // menu_left() {
|
|
|
|
- // let arr = [{path: '/tunnelling', name: '掘进工作面', id: 101, hidden: false}]
|
|
|
|
- // console.log('arr',arr)
|
|
|
|
- // return arr;
|
|
|
|
- // },
|
|
|
|
- // menu_right() {
|
|
|
|
- // return this.$router.options.routes[1].children.filter(
|
|
|
|
- // (item) => !item.hidden
|
|
|
|
- // );
|
|
|
|
- // },
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|