Skip to content

Commit ef134af

Browse files
committed
fix: 修复文件配置全没勾选的情况下还能上传文件的问题
--bug=1049620 --user=刘瑞斌 【应用编排】文件上传设置没勾选文档也没勾选图片,发布后对话还是能上传文档和图片 https://www.tapd.cn/57709429/s/1618519
1 parent 59f5c8a commit ef134af

File tree

1 file changed

+3
-0
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+3
-0
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ const getAcceptList = () => {
217217
accepts = [...accepts, ...videoExtensions]
218218
}
219219
// console.log(accepts)
220+
if (accepts.length === 0) {
221+
return '.请在文件上传配置中选择文件类型'
222+
}
220223
return accepts.map((ext: any) => '.' + ext).join(',')
221224
}
222225

0 commit comments

Comments
 (0)