報錯信息如下:
[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了。
如圖: