图片
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user