From 85ada8b0aea1d43b2c2f21ec6170f18bf1f8fc67 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Sun, 27 Oct 2019 22:22:38 +0900 Subject: [PATCH] Pass project id to get label method in annotation pages --- frontend/components/containers/EntityItemBox.vue | 7 ++++--- frontend/components/containers/TextClassification.vue | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/components/containers/EntityItemBox.vue b/frontend/components/containers/EntityItemBox.vue index f53a1feb..c5538c64 100644 --- a/frontend/components/containers/EntityItemBox.vue +++ b/frontend/components/containers/EntityItemBox.vue @@ -28,10 +28,11 @@ export default { }, created() { - this.getLabelList() - this.getDocumentList({ + const payload = { projectId: this.$route.params.id - }) + } + this.getLabelList(payload) + this.getDocumentList(payload) }, methods: { diff --git a/frontend/components/containers/TextClassification.vue b/frontend/components/containers/TextClassification.vue index 16e6207a..092e0408 100644 --- a/frontend/components/containers/TextClassification.vue +++ b/frontend/components/containers/TextClassification.vue @@ -30,10 +30,11 @@ export default { }, created() { - this.getLabelList() - this.getDocumentList({ + const payload = { projectId: this.$route.params.id - }) + } + this.getLabelList(payload) + this.getDocumentList(payload) }, methods: {