From 356b0ab9c47573dba34f0b70fb6ad53147318ae5 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 4 Dec 2025 16:13:35 +0800 Subject: [PATCH] fix: correct file limit condition to allow maximum file uploads --- .../components/ai-chat/component/chat-input-operate/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 916e885e8..0bfcdbfe3 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 @@ -543,7 +543,7 @@ const uploadFile = async (file: any, fileList: any) => { uploadAudioList.value.length + uploadVideoList.value.length + uploadOtherList.value.length - if (file_limit_once >= maxFiles) { + if (file_limit_once > maxFiles) { MsgWarning(t('chat.uploadFile.limitMessage1') + maxFiles + t('chat.uploadFile.limitMessage2')) fileList.splice(0, fileList.length, ...fileList.slice(0, maxFiles)) return