Commit 8ae5f2ad by liwk

修改表格

1 parent b499f16a
......@@ -271,9 +271,9 @@ export default {
}
// console.log(params)
console.log(1)
this.getListApi(params).then(res => {
this.data = res[this.tableParams.listName]
this.total = res.total
this.getListApi(params).then(({ data }) => {
this.data = data[this.tableParams.listName]
this.total = data.total
this.loading = false
}).catch(() => {
this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!