diff --git a/frontend/components/containers/Paginator.vue b/frontend/components/containers/Paginator.vue index 62c18930..17407443 100644 --- a/frontend/components/containers/Paginator.vue +++ b/frontend/components/containers/Paginator.vue @@ -30,6 +30,11 @@ export default { }, watch: { + page() { + const checkpoint = {} + checkpoint[this.$route.params.id] = this.page + localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) + }, offset() { this.getDocumentList({ projectId: this.$route.params.id, @@ -43,6 +48,8 @@ export default { }, created() { + const checkpoint = JSON.parse(localStorage.getItem('checkpoint')) + this.page = checkpoint ? checkpoint[this.$route.params.id] : 1 this.getDocumentList({ projectId: this.$route.params.id, limit: this.limit,