namin 3 년 전
부모
커밋
f0850663f7
1개의 변경된 파일3개의 추가작업 그리고 22개의 파일을 삭제
  1. 3 22
      src/views/Home.vue

+ 3 - 22
src/views/Home.vue

@@ -195,36 +195,17 @@ export default {
     },
   },
   computed: {
-    // menu_left() {
-    //   return this.$router.options.routes[0].children.filter(
-    //     (item) => !item.hidden
-    //   );
-    // },
     menu_left() {
-      let arr1 = this.$router.options.routes[0].children.filter(
+      return this.$router.options.routes[0].children.filter(
         (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() {
-      let arr2 = this.$router.options.routes[1].children.filter(
+      return this.$router.options.routes[1].children.filter(
         (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>