如何解決在使用VScode編輯器vue開發過程中出現報錯:Elements in iteration expect to have ‘v-bind:key’ directives

報錯信息如下:

[eslint-plugin-vue]
[vue/require-v-for-key]
Elements in iteration expect to have 'v-bind:key' directives.

這是因爲我們安裝了ESLint插件,對vue進行了eslint檢查,只需將這個規則檢查屏蔽掉即可,具體操作如下: 
文件–》首選項–》設置–》在搜索框中輸入:vetur.validation.template》找到vetur.validation.template:true》將vetur.validation.template:true在右欄框中進行重置爲false就ok了。 
如圖:

重置

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章