美文网首页vue踩坑
vscode报错:Elements in iteration e

vscode报错:Elements in iteration e

作者: 月中眠_d56d | 来源:发表于2019-07-31 10:22 被阅读1次

今天在查看项目时,发现了一个vscode的报错:


image.png

报错信息:
[vue/require-v-for-key]
Elements in iteration expect to have 'v-bind:key' directives.eslint-plugin-vue
原因是安装了 ESLint 插件,对vue进行了eslint检查,只需将这个规则检查屏蔽掉即可。
具体操作如下:
文件-首选项-设置-在搜索框中输入:vetur.validation.template–找到右边calidation:template (默认是勾选状态),将前面的对勾去掉即可


image.png
然后重启:
image.png

问题解决

相关文章

网友评论

    本文标题:vscode报错:Elements in iteration e

    本文链接:https://www.haomeiwen.com/subject/dpfzrctx.html