diff --git a/frontend/pages/projects/_id/image-captioning/index.vue b/frontend/pages/projects/_id/image-captioning/index.vue index 31f200a3..26a707ba 100644 --- a/frontend/pages/projects/_id/image-captioning/index.vue +++ b/frontend/pages/projects/_id/image-captioning/index.vue @@ -66,10 +66,15 @@ export default { const { app, params, query } = useContext() const projectId = params.value.id const { state: projectState, getProjectById } = useProjectItem() - const { state, autoLabel, list, clear, remove, add, update } = useTextLabel( - app.$repositories.textLabel, - projectId - ) + const { + state: labelState, + autoLabel, + list, + clear, + remove, + add, + update + } = useTextLabel(app.$repositories.textLabel, projectId) const { state: exampleState, confirm, getExample, updateProgress } = useExampleItem() const enableAutoLabeling = ref(false) const imageSize = reactive({ @@ -110,17 +115,15 @@ export default { }) return { - ...toRefs(state), + ...toRefs(labelState), ...toRefs(exampleState), ...toRefs(projectState), add, - autoLabel, list, clear, remove, update, confirm, - getExample, enableAutoLabeling, imageSize, projectId diff --git a/frontend/pages/projects/_id/labels/import.vue b/frontend/pages/projects/_id/labels/import.vue index d837254e..0c8f98f6 100644 --- a/frontend/pages/projects/_id/labels/import.vue +++ b/frontend/pages/projects/_id/labels/import.vue @@ -54,7 +54,7 @@ export default Vue.extend({ try { await this.service.upload(this.projectId, file) this.$router.push(`/projects/${this.projectId}/labels`) - } catch (e) { + } catch (e: any) { this.errorMessage = e.message } },