当vue报错为:[vue/require-v-for-key]Elements in iteration expect to have 'v-bind:key' dir

则是如下错误显示:

vue使用报错记录:[vue/require-v-for-key]Elements in iteration expect to have 'v-bind:key' dir

则在Vue 的版本里,当在组件中使用v-for时,key是必须的。

解决方案:在文件 –>首选项 –>设置 –>在搜索框中输入vetur.validation.template,可以找到vetur.validation.template,取消选项即可。如下图所示:

 

vue使用报错记录:[vue/require-v-for-key]Elements in iteration expect to have 'v-bind:key' dir

 

 

相关文章:

  • 2021-12-24
  • 2021-07-18
  • 2021-12-08
  • 2022-01-17
  • 2021-07-12
  • 2021-06-28
  • 2021-09-27
猜你喜欢
  • 2021-10-01
  • 2021-05-01
  • 2021-08-30
  • 2021-04-01
  • 2021-10-25
相关资源
相似解决方案