lrf402788946 5 år sedan
förälder
incheckning
0524ea5ea6
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/layout/index/native.vue

+ 3 - 3
src/layout/index/native.vue

@@ -25,9 +25,9 @@
             </template>
             <template v-for="(sub, subIndex) in item.children">
               <template v-if="sub.children">
-                <template v-for="(thr,thrIndex) in sub.children">
-                  <el-menu-item :index="thr.path" :key="thrIndex+'thr'" v-if="thr.type !== 'url'" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">{{ thr.title }}</el-menu-item>
-                  <el-menu-item :index="``" :key="thrIndex+'thr'" @click="turnTo(thr.url)" v-else style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover"> {{ thr.title }}</el-menu-item>
+                <template v-for="(thr) in sub.children">
+                  <el-menu-item :index="thr.path" :key="thr.id" v-if="thr.type !== 'url'" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">{{ thr.title }}</el-menu-item>
+                  <el-menu-item :index="``" :key="thr.id" @click="turnTo(thr.url)" v-else style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover"> {{ thr.title }}</el-menu-item>
                 </template>
               </template>
               <el-menu-item :index="sub.path" :key="subIndex+'sub'" v-else-if="sub.type === 'content'||sub.type==='column'" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">{{ sub.title }}</el-menu-item>