vue 中 axios 获取到的json数据在使用antdesign时候使用table绑定时需要key的解决方案

this.axios.get('/api/user').then((res)=>{
this.temp=res.data.data
this.temp.map(((item, index)=> {
this.data.push(Object.assign({},item,{key:item.uid}))
}))
})
posted @ 2021-05-12 23:44  今夜明珠色  阅读(341)  评论(0编辑  收藏  举报