Vue报错:[vue/require-v-for-key] Elements in iteration expect to have ‘v-bind:key‘ directives.

编译工具:VS Code

编译错误如图
Vue报错:[vue/require-v-for-key] Elements in iteration expect to have ‘v-bind:key‘ directives._第1张图片
**

解决办法: 文件→选择首选项→设置→在搜索框中输入:vetur.validation.template 将Vetur › Validation: Template下的插件关掉 如图:

**
Vue报错:[vue/require-v-for-key] Elements in iteration expect to have ‘v-bind:key‘ directives._第2张图片

你可能感兴趣的:(vue.js)