在使用vscode寫vue的時(shí)候會(huì)出現(xiàn)這樣一個(gè)錯(cuò)誤:
[eslint-plugin-vue]
[vue/require-v-for-key]
Elements in iteration expect to have 'v-bind:key' directives.
Renders the element or template block multiple times based on the source data.
這是在使用插件vetur的問題历恐,關(guān)閉了就行了友驮。打開vscode-首選項(xiàng)-設(shè)置-工作區(qū)設(shè)置
把"vetur.validation.template": true改成
"vetur.validation.template": false
保存一下就解決了粥脚。