使用VScode开发vue中,v-for在Eslint的规则检查下出现报错:如下
Elements in iteration expect to have ‘v-bind:key’ directives;
改正方法呢 就是后面加上:key="item" 就好了,当然也有屏蔽eslint检查的方法(我没用,有兴趣可自行百度)。。。
[vue/require-v-for-key] Elements in iteration expect to have 'v-bind:key' directives.
原文地址:https://www.cnblogs.com/hq-HQ/p/12361366.html
时间: 2024-10-03 19:39:04