|
@@ -41,8 +41,9 @@ export default {
|
|
|
this.list = [...this.list, ...res.data.data];
|
|
this.list = [...this.list, ...res.data.data];
|
|
|
this.empty = res.data.recordsTotal === 0;
|
|
this.empty = res.data.recordsTotal === 0;
|
|
|
this.finish = this.empty ? true : res.data.totalPage === this.pageNum + 1;
|
|
this.finish = this.empty ? true : res.data.totalPage === this.pageNum + 1;
|
|
|
|
|
+ this.loading = false;
|
|
|
})
|
|
})
|
|
|
- .finally(() => {
|
|
|
|
|
|
|
+ .catch(() => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|