Skip to content

Commit 7fe0d13

Browse files
committed
fix: 修复单次上传文件限制
--bug=1049382 --user=刘瑞斌 【应用编排】文件上传,单词上传最多文件数没限制住 https://www.tapd.cn/57709429/s/1615405
1 parent 1b87f98 commit 7fe0d13

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ const getAcceptList = () => {
209209
210210
const uploadFile = async (file: any, fileList: any) => {
211211
const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting
212-
if (fileList.length > maxFiles) {
212+
// 单次上传文件数量限制
213+
const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length
214+
if (file_limit_once >= maxFiles) {
213215
MsgWarning('最多上传' + maxFiles + '个文件')
214216
return
215217
}

0 commit comments

Comments
 (0)