component lists rendered with v-for should have explicit keys

技术分享图片

出现这个报错的主要原因是  component lists rendered with v-for should have explicit keys

去官网看了下v-for,简单说就是有相同父元素的子元素要有一个唯一的key,这样才能避免渲染错误,具体解释如下图:

技术分享图片

 

文章来自:https://www.cnblogs.com/1rookie/p/8450267.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3