async exportAll() {
this.isLoading = true
let res = await this.$API.xxx.list(this.pages)
if (res.data.rows.length) {
if (this.pages.page == 1) {
this.allStuList = res.data.rows
} else {
this.allStuList = this.allStuList.concat(res.data.rows)
}
this.pages.page++
if (res.data.rows.length == this.pages.pageSize) {
this.exportAll()
}else{
this.isLoading = false
}
}
}
vue 递归分页方法
最新推荐文章于 2024-10-29 15:07:37 发布