Fork me on github

错误提示:Custom elements in iteration require 'v-bind:key' directives.eslint-plugin-vue

错误提示:Custom elements in iteration require 'v-bind:key' directives.eslint-plugin-vue
原因:使用了Vue中的vetur插件,在使用v-for时,key是必须的
解决:关闭VScodet对该插件的检查,在文件-首选项-设置里面输入vetur validation template 找到这个选项,去掉掉勾,再重启VScode。

posted on 2020-05-07 18:46  markyle  阅读(4292)  评论(0编辑  收藏  举报