VS - Elements in iteration expect to have 'v-bind:key' directives

现象:


image.png

办法:
v-for 后添加 :key='item'

  • 结果:


    image.png
  • 你可能感兴趣的:(VS - Elements in iteration expect to have 'v-bind:key' directives)