vue component lists rendered with v-for should have explicit keys. See
启动vue时报错 component lists rendered with v-for should have explicit keys. See
大至意思是说我的for循环少了key
原先代码:
<van-swipe-item v-for="(value,key) in banner" ><img :src="value.img"></van-swipe-item>
改成
<van-swipe-item v-for="(value,key) in banner" :key="key"><img :src="value.img"></van-swipe-item>
可以了,加了个:key="key"