feat(resettle2): 分页返回结构变更
This commit is contained in:
parent
b5fa07eee4
commit
0215c0c600
|
@ -308,15 +308,15 @@ export default {
|
|||
|
||||
const res = await arc.getAzFrameworkList(this.queryParams)
|
||||
|
||||
if (res.code === 200 && res.data) {
|
||||
const newData = res.data.rows || []
|
||||
if (res.code === 200 && res.rows) {
|
||||
const newData = res.rows || []
|
||||
|
||||
if (this.currentPage === 1) {
|
||||
this.pointList = newData
|
||||
} else {
|
||||
this.pointList = [...this.pointList, ...newData]
|
||||
}
|
||||
this.total = res.data.total || 0
|
||||
this.total = res.total || 0
|
||||
|
||||
// 优化hasMore判断逻辑
|
||||
this.hasMore =
|
||||
|
|
Loading…
Reference in New Issue