Add event to scroll to top on scan page change

This commit is contained in:
Julian Stirling 2025-10-29 13:29:36 +00:00
parent cd5d5149a3
commit 3da1b8a9c3

View file

@ -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;
} }
}, },