Invalid prop: type check failed for prop "dataSource". Expected Array, got Object

1.Invalid prop: type check failed for prop "dataSource". Expected Array, got Object

Invalid prop: type check failed for prop "dataSource". Expected Array, got Object

 

 报错

get(){
      getApproveConfList({id:this.confID}).then((data)=>{
        console.log(data,'2222222申')
        this.tableData=data
        console.log(this.tableData,'333333申')
      })
}

解决后

get(){
      getApproveConfList({id:this.confID}).then((data)=>{
        console.log(data,'2222222申')
        this.tableData=data.approveconf_set
        console.log(this.tableData,'333333申')
      })
    }

 

获取后端数据

Invalid prop: type check failed for prop "dataSource". Expected Array, got Object

 

上一篇:enum


下一篇:Azure AD 获得 Token 的时候得到 invalid_scope 的错误