From b7905198a2d9771d7c725c67dbb6ee9089d07f21 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 27 Nov 2024 12:27:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=85=A8=E6=B2=A1=E5=8B=BE=E9=80=89=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E8=BF=98=E8=83=BD=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049620 --user=刘瑞斌 【应用编排】文件上传设置没勾选文档也没勾选图片,发布后对话还是能上传文档和图片 https://www.tapd.cn/57709429/s/1618519 --- .../components/ai-chat/component/chat-input-operate/index.vue | 3 +++ 1 file changed, 3 insertions(+) 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 b6dd4bf1e..7ea236c04 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 @@ -217,6 +217,9 @@ const getAcceptList = () => { accepts = [...accepts, ...videoExtensions] } // console.log(accepts) + if (accepts.length === 0) { + return '.请在文件上传配置中选择文件类型' + } return accepts.map((ext: any) => '.' + ext).join(',') }