在使用v-for时会出现v-for报错 [vue/valid-v-for]Custom elements in iteration require ‘v-bind:key’ directives.eslint-plugin-vue
解决方法则是加入key属性即可:
<swiper-item v-for = "item in banner" :key="item.label">
加入key属性之后则可以正常运行
第二种解决方法:
找到 文件->首选项->设置 里面输入:vetur validation template ,把勾去掉即可。