: Duplicate keys detected: ‘2022-04-05 20:45:35’. This may cause an update error.
报错是因为v-for遍历过程中有相同的key重复了,这时候可以选择没有重复性的属性做key,又或者可以将遍历的次数index加上:
原先:
<el-row class="personnelInfo" v-for="n in Resumes" :key="n.gmtCreate">
更改后:
<el-row class="personnelInfo" v-for="(n,index) in Resumes" :key="index">
每天保持好心情,smile