component lists rendered with v-for should have explicit keys

出現這個報錯的主要原因是  component lists rendered with v-for should have explicit keys 去官網看了下v-for,簡單說就是有相同父元素的子元素要有一個唯一的key,這樣才能避免渲染錯誤,具體解釋如下圖:
相關文章
相關標籤/搜索