From 12a263c69b21ef79d7b31564e12a8cd341601bcd Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 3 Dec 2024 17:51:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=B6=85=E8=BF=87=E9=99=90=E5=88=B6=E6=97=B6=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai-chat/component/chat-input-operate/index.vue | 6 +++++- 1 file changed, 5 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 7ea236c04..c7c5eaa3b 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 @@ -93,7 +93,7 @@ }} - + @@ -223,6 +223,10 @@ const getAcceptList = () => { return accepts.map((ext: any) => '.' + ext).join(',') } +const checkMaxFilesLimit = () => { + return props.applicationDetails.file_upload_setting.maxFiles <= (uploadImageList.value.length + uploadDocumentList.value.length) +} + const uploadFile = async (file: any, fileList: any) => { const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting // 单次上传文件数量限制