错误代码
<swiper>
<swiper-item v-for="item in banners">
<a :href="item.link">
<img :src="item.image" alt="">
</a>
</swiper-item>
</swiper>
正确代码
<swiper>
<swiper-item v-for="(index,item) in banners" :key="index" >
<a :href="item.link">
<img :src="item.image" alt="">
</a>
</swiper-item>
</swiper>