Skip to content

Commit cfb8e83

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

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const uploadFile = async (file: any, fileList: any) => {
213213
const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length
214214
if (file_limit_once >= maxFiles) {
215215
MsgWarning('最多上传' + maxFiles + '个文件')
216+
fileList.splice(0, fileList.length)
216217
return
217218
}
218219
if (fileList.filter((f: any) => f.size > fileLimit * 1024 * 1024).length > 0) {

0 commit comments

Comments
 (0)