Add event to scroll to top on scan page change
This commit is contained in:
parent
cd5d5149a3
commit
3da1b8a9c3
1 changed files with 2 additions and 1 deletions
|
|
@ -244,7 +244,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changePage(page) {
|
changePage(page) {
|
||||||
if (page >= 1 && page <= this.totalPages) {
|
if (page >= 1 && page <= this.totalPages && this.currentPage != page) {
|
||||||
|
this.$emit("scrollTop");
|
||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue