联调算法库

修改冀北台账问题
This commit is contained in:
GGJ
2024-09-11 20:37:40 +08:00
parent a8c1fa46c0
commit 28d9af0cb4
11 changed files with 437 additions and 230 deletions

View File

@@ -80,8 +80,8 @@ export default class TableStore {
)
).then((res: any) => {
if (res.data) {
this.table.data = res.data.records || res.data
this.table.total = res.data.total || res.data.length || 0
this.table.data = res.data?.records || res.data
this.table.total = res.data?.total || res.data.length || 0
} else {
this.table.data = []
this.table.total = 0