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

 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-10-12
猜你喜欢
  • 2021-10-24
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案