Browse Source

Pass project id to get label method in annotation pages

pull/341/head
Hironsan 5 years ago
parent
commit
85ada8b0ae
2 changed files with 8 additions and 6 deletions
  1. 7
      frontend/components/containers/EntityItemBox.vue
  2. 7
      frontend/components/containers/TextClassification.vue

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

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

Loading…
Cancel
Save