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

错误代码:
<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"

©️2020 CSDN 皮肤主题: 1024 设计师:上身试试 返回首页