瀏覽代碼

update key

15724580513 5 年之前
父節點
當前提交
66a1f44126
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/client/examsystem.vue
  2. 1 1
      src/views/client/trainsystem.vue

+ 1 - 1
src/views/client/examsystem.vue

@@ -46,7 +46,7 @@
             <h4 class="client-title">产品展示</h4>
             <div class="product-show-container">
                 <el-carousel :interval="4000" type="card" arrow="never">
-                    <el-carousel-item v-for="item in productShowCarousels">
+                    <el-carousel-item v-for="(item,index) in productShowCarousels" :key="index">
                         <div class="product-show-carousel">
                             <img :src="item.img">
                             <h5>{{item.title}}</h5>

+ 1 - 1
src/views/client/trainsystem.vue

@@ -46,7 +46,7 @@
             <h4 class="client-title">产品展示</h4>
             <div class="product-show-container">
                 <el-carousel :interval="4000" type="card" arrow="never">
-                    <el-carousel-item v-for="item in productShowCarousels">
+                    <el-carousel-item v-for="(item,index) in productShowCarousels" :key="index">
                         <div class="product-show-carousel">
                             <img :src="item.img">
                             <h5>{{item.title}}</h5>