表格优化
This commit is contained in:
@@ -52,7 +52,9 @@ export default class TableStore {
|
||||
requestPayload(this.method, this.table.params)
|
||||
)
|
||||
).then((res: any) => {
|
||||
|
||||
this.table.data = res.data.records || res.data
|
||||
console.log(this.table.data)
|
||||
this.table.total = res.data.total || res.data.length
|
||||
this.table.loading = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user