Skip to content

Commit 356b0ab

Browse files
committed
fix: correct file limit condition to allow maximum file uploads
1 parent f8ada9a commit 356b0ab

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ const uploadFile = async (file: any, fileList: any) => {
543543
uploadAudioList.value.length +
544544
uploadVideoList.value.length +
545545
uploadOtherList.value.length
546-
if (file_limit_once >= maxFiles) {
546+
if (file_limit_once > maxFiles) {
547547
MsgWarning(t('chat.uploadFile.limitMessage1') + maxFiles + t('chat.uploadFile.limitMessage2'))
548548
fileList.splice(0, fileList.length, ...fileList.slice(0, maxFiles))
549549
return

0 commit comments

Comments
 (0)