15724580513 5 år sedan
förälder
incheckning
66a1f44126
2 ändrade filer med 2 tillägg och 2 borttagningar
  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>