Browse Source

Apply linter

pull/2197/head
Hironsan 1 year ago
parent
commit
cbe05d3d25
2 changed files with 11 additions and 8 deletions
  1. 17
      frontend/pages/projects/_id/image-captioning/index.vue
  2. 2
      frontend/pages/projects/_id/labels/import.vue

17
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

2
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
}
},

Loading…
Cancel
Save