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: {