From 8c25ef575b140c56b6b11f0e95c98c4ee1c17c60 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 8 Dec 2025 17:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../image-captioning/components/ImageResults.vue | 5 +++++ 1 file changed, 5 insertions(+) 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,