From cfb8e837fffd8e67cded0a918d1e895801dfb466 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 22 Nov 2024 15:23:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=AC=A1?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049382 --user=刘瑞斌 【应用编排】文件上传,单词上传最多文件数没限制住 https://www.tapd.cn/57709429/s/1615405 --- ui/src/components/ai-chat/component/chat-input-operate/index.vue | 1 + 1 file changed, 1 insertion(+) 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) {