Browse Source

Bugfix: fix condition to load a page number from local storage

pull/341/head
Hironsan 5 years ago
parent
commit
75b33c15f7
2 changed files with 1 additions and 2 deletions
  1. 1
      frontend/components/containers/annotation/FilterButton.vue
  2. 2
      frontend/components/containers/annotation/Paginator.vue

1
frontend/components/containers/annotation/FilterButton.vue

@ -59,7 +59,6 @@ export default {
watch: {
selected() {
alert(this.selected)
this.initSearchOptions()
this.updateSearchOptions({
isChecked: this.items[this.selected].param,

2
frontend/components/containers/annotation/Paginator.vue

@ -69,7 +69,7 @@ export default {
created() {
const checkpoint = JSON.parse(localStorage.getItem('checkpoint'))
this.page = checkpoint ? checkpoint[this.$route.params.id] : 1
this.page = checkpoint[this.$route.params.id] ? checkpoint[this.$route.params.id] : 1
this.getDocumentList({
projectId: this.$route.params.id
})

Loading…
Cancel
Save