Browse Source

Enable to resume annotation

pull/341/head
Hironsan 5 years ago
parent
commit
06ac4082bd
1 changed files with 7 additions and 0 deletions
  1. 7
      frontend/components/containers/Paginator.vue

7
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,

Loading…
Cancel
Save