Sfoglia il codice sorgente

fix:模板列表循环加key

梦辉 5 mesi fa
parent
commit
27425f08fc

+ 1 - 1
src/subPages/pages/commitment/home/components/templateList/index.vue

@@ -64,7 +64,7 @@ export default {
 
 <template>
   <van-swipe class="my-swipe" @change="onChange"  indicator-color="white" :loop="false">
-    <van-swipe-item  v-for="groupItem in templateList">
+    <van-swipe-item  v-for="(groupItem,index) in templateList" :key="index">
       <view class="box">
         <view v-for="item in groupItem" :key="item.uuid"
               @click="handleClick(item)"