namin hace 3 años
padre
commit
f0850663f7
Se han modificado 1 ficheros con 3 adiciones y 22 borrados
  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>