fix: 修复单次上传文件限制

--bug=1049382 --user=刘瑞斌 【应用编排】文件上传,单词上传最多文件数没限制住 https://www.tapd.cn/57709429/s/1615405
This commit is contained in:
CaptainB 2024-11-22 15:16:51 +08:00 committed by 刘瑞斌
parent 1b87f98874
commit 91633b58b8

View File

@ -209,7 +209,9 @@ const getAcceptList = () => {
const uploadFile = async (file: any, fileList: any) => {
const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting
if (fileList.length > maxFiles) {
//
const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length
if (file_limit_once >= maxFiles) {
MsgWarning('最多上传' + maxFiles + '个文件')
return
}