From 8721b91698802665c19a1ab57532d6e1196b3f5c Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 13 Jul 2020 12:10:26 +0900 Subject: [PATCH] Revert "bug: fix to bug 850. Now is possible to open documents from other pages" This reverts commit a63fc753 --- frontend/components/containers/annotation/BottomNavigator.vue | 3 +++ frontend/components/containers/annotation/Paginator.vue | 3 +++ frontend/components/containers/documents/DocumentList.vue | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/components/containers/annotation/BottomNavigator.vue b/frontend/components/containers/annotation/BottomNavigator.vue index 58cd2018..3fcc1078 100644 --- a/frontend/components/containers/annotation/BottomNavigator.vue +++ b/frontend/components/containers/annotation/BottomNavigator.vue @@ -59,6 +59,9 @@ export default { this.initPage({ projectId: this.$route.params.id }) + this.getDocumentList({ + projectId: this.$route.params.id + }) }, methods: { diff --git a/frontend/components/containers/annotation/Paginator.vue b/frontend/components/containers/annotation/Paginator.vue index 4ae2e121..288e4106 100644 --- a/frontend/components/containers/annotation/Paginator.vue +++ b/frontend/components/containers/annotation/Paginator.vue @@ -105,6 +105,9 @@ export default { this.initPage({ projectId: this.$route.params.id }) + this.getDocumentList({ + projectId: this.$route.params.id + }) }, methods: { diff --git a/frontend/components/containers/documents/DocumentList.vue b/frontend/components/containers/documents/DocumentList.vue index 5e8ce12a..4f5eaaed 100644 --- a/frontend/components/containers/documents/DocumentList.vue +++ b/frontend/components/containers/documents/DocumentList.vue @@ -138,7 +138,7 @@ export default { this.$router.push('/projects/' + this.$route.params.id + '/' + this.getLink) this.setCurrent(index) const checkpoint = {} - checkpoint[this.$route.params.id] = offset + index + 1 + checkpoint[this.$route.params.id] = index + 1 localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) } }