From 91633b58b871e76e5c5983011bf41bb582d04048 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 22 Nov 2024 15:16:51 +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 --- .../components/ai-chat/component/chat-input-operate/index.vue | 4 +++- 1 file changed, 3 insertions(+), 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 d4524fde2..16e03c0b3 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 @@ -209,7 +209,9 @@ const getAcceptList = () => { const uploadFile = async (file: any, fileList: any) => { const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting - if (fileList.length > maxFiles) { + // 单次上传文件数量限制 + const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length + if (file_limit_once >= maxFiles) { MsgWarning('最多上传' + maxFiles + '个文件') return }