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}))
    }))
})vue 中 axios 获取到的json数据在使用antdesign时候使用table绑定时需要key的解决方案
原文:https://www.cnblogs.com/minejava/p/14762609.html