From 617937fe58fcf71ff697576a9fa4f70a9ee35932 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Fri, 29 Aug 2025 12:00:30 +0800 Subject: [PATCH] fix: typos (#3965) --- .../ai-chat/component/chat-input-operate/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index 00a3d6421..3156feaf0 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -765,21 +765,21 @@ const stopTimer = () => { const getQuestion = () => { if (!inputValue.value.trim()) { - const fileLenth = [ + const fileLength = [ uploadImageList.value.length > 0, uploadDocumentList.value.length > 0, uploadAudioList.value.length > 0, uploadOtherList.value.length > 0, ] - if (fileLenth.filter((f) => f).length > 1) { + if (fileLength.filter((f) => f).length > 1) { return t('chat.uploadFile.otherMessage') - } else if (fileLenth[0]) { + } else if (fileLength[0]) { return t('chat.uploadFile.imageMessage') - } else if (fileLenth[1]) { + } else if (fileLength[1]) { return t('chat.uploadFile.documentMessage') - } else if (fileLenth[2]) { + } else if (fileLength[2]) { return t('chat.uploadFile.audioMessage') - } else if (fileLenth[3]) { + } else if (fileLength[3]) { return t('chat.uploadFile.otherMessage') } }