This commit is contained in:
yanran200730
2022-11-02 14:44:45 +08:00
parent 98277aa8b9
commit a1ddb7ab60
6 changed files with 83 additions and 35 deletions

View File

@@ -79,21 +79,21 @@
size: 10
}
}).then(res => {
if (res.code === 200) {
if (res.code === 0) {
this.$hideLoading()
if (this.page > 1) {
this.list = [...this.list, ...res.data]
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data
this.list = res.data.records
}
if (res.data.length < 10) {
if (res.data.records.length < 10) {
this.isMore = true
return false
}
this.page = this.page + 1
this.current = this.current + 1
} else {
this.isMore = true
}