Browse Source

健康管理二级菜单

chenminghua 3 years ago
parent
commit
c431343131
1 changed files with 29 additions and 27 deletions
  1. 29 27
      src/views/layout/Menu.vue

+ 29 - 27
src/views/layout/Menu.vue

@@ -17,7 +17,7 @@
       </li>
     </ul>
   </div>
-  <!-- <div class="sub-menu" v-show="isShowSubMenu">
+  <div class="sub-menu" v-show="isShowSubMenu">
     <ul class="menu-list">
       <li class="menu-item" v-for="(menu, index) of subMenu" @click="subclick(index)" :key="menu" :class="{ active: subIndex == index }">
         <router-link :to="menu.path">
@@ -28,7 +28,7 @@
         </router-link>
       </li>
     </ul>
-  </div> -->
+  </div>
 </template>
 <script>
 import SvgIcon from "@com/coms/icon/svg-icon.vue";
@@ -105,31 +105,33 @@ export default {
               text: "健康管理",
               icon: "svg-wind-site",
               path: "/health",
-            },
-            // {
-            //   text: "健康管理1",
-            //   icon: "svg-wind-site",
-            //   path: "/health/health1",
-            // },
-            {
-              text: "健康管理2",
-              icon: "svg-wind-site",
-              path: "/health/health2",
-            },
-            // {
-            //   text: "健康管理3",
-            //   icon: "svg-wind-site",
-            //   path: "/health/health3",
-            // },
-            {
-              text: "健康管理5",
-              icon: "svg-wind-site",
-              path: "/health/health5",
-            },
-            {
-              text: "健康管理6",
-              icon: "svg-wind-site",
-              path: "/health/health6",
+              children: [
+                 {
+                  text: "健康推荐",
+                  icon: "svg-wind-site",
+                  path: "/health",
+                },
+                {
+                  text: "健康首页",
+                  icon: "svg-wind-site",
+                  path: "/health/health2",
+                },
+                {
+                  text: "健康总览",
+                  icon: "svg-wind-site",
+                  path: "/health/health6",
+                },
+                {
+                  text: "健康矩阵",
+                  icon: "svg-wind-site",
+                  path: "/health/health5",
+                },
+                // {
+                //   text: "健康列表",
+                //   icon: "svg-wind-site",
+                //   path: "/health/health6",
+                // }
+              ],
             },
           ],
         },