Custom elements in iteration require ‘v-bind:key‘ directives vue/valid-v-for

神奇的路人A發表於2020-09-26

錯誤程式碼:
<el-timeline-item :timestamp=“blog.created” placement=“top” v-for="value in blogs"

修改後:
<el-timeline-item :timestamp=“blog.created” placement=“top” v-for="(value,key) in blogs" :key="key"

相關文章