diff --git a/src/views/imageCaptioning/image-captioning/components/ImageResults.vue b/src/views/imageCaptioning/image-captioning/components/ImageResults.vue index a846474..26b9d81 100644 --- a/src/views/imageCaptioning/image-captioning/components/ImageResults.vue +++ b/src/views/imageCaptioning/image-captioning/components/ImageResults.vue @@ -1012,6 +1012,11 @@ export default { handleInputConfirm() { let inputValue = this.inputValue + if (!inputValue) { + this.inputVisible = false + return + } + // 根据inputValue在annotationTypeOptions中查找是否存在 const index = this.annotationTypeOptions.findIndex( (item) => item.value === inputValue,