2024.7.16
This commit is contained in:
@@ -256,7 +256,7 @@
|
||||
})
|
||||
},
|
||||
init_fn() {
|
||||
this.list = []
|
||||
// this.list = []
|
||||
this.groupList = []
|
||||
this.is_end = false
|
||||
this.form.page = 1
|
||||
@@ -288,6 +288,7 @@
|
||||
if (res.data.pages < this.form.page) {
|
||||
this.form.status = 'nomore'
|
||||
if (this.form.page == 1 && res.data.list.length == 0) {
|
||||
this.list = []
|
||||
this.is_end = true
|
||||
}
|
||||
return false;
|
||||
@@ -295,7 +296,11 @@
|
||||
this.form.status = 'loading';
|
||||
this.form.page = ++this.form.page;
|
||||
setTimeout(() => {
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
if (this.form.page == 1) {
|
||||
this.list = res.data.list
|
||||
} else {
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
}
|
||||
this.form.status = 'loading';
|
||||
if (res.data.pageNum == res.data.pages) {
|
||||
this.form.status = 'nomore';
|
||||
@@ -303,6 +308,7 @@
|
||||
this.form.status = 'loading';
|
||||
}
|
||||
}, 500)
|
||||
|
||||
}
|
||||
},
|
||||
async getorderList() {
|
||||
|
||||
Reference in New Issue
Block a user