vue 报错解决:component lists rendered with v-for should have explicit keys.

使用iview时控制台遇到的告警信息:
: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
@ ./src/components/VideoManage/StickersNew.vue 7:0-374
原本的代码如下:

  
  
  

运行时显示warning,添加:key即可,如下

  
  
  

你可能感兴趣的:(前端,vue)