|
@@ -266,13 +266,12 @@ export default {
|
|
|
},
|
|
|
async toNextPaper() {
|
|
|
if (this.curPaperIndex === this.papers.length - 1) {
|
|
|
- if (this.current === this.totalPage) {
|
|
|
+ if (this.current >= this.totalPage) {
|
|
|
this.$Message.warning("当前已经是最后一条数据了");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.setPage({ current: this.current + 1 });
|
|
|
+ await this.toPage(this.current + 1);
|
|
|
this.curPaperIndex = 0;
|
|
|
- await this.getList();
|
|
|
}
|
|
|
} else {
|
|
|
this.curPaperIndex++;
|