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 16e03c0b3..24aac0c1d 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 @@ -213,6 +213,7 @@ const uploadFile = async (file: any, fileList: any) => { const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length if (file_limit_once >= maxFiles) { MsgWarning('最多上传' + maxFiles + '个文件') + fileList.splice(0, fileList.length) return } if (fileList.filter((f: any) => f.size > fileLimit * 1024 * 1024).length > 0) {