fix: 修复文件配置全没勾选的情况下还能上传文件的问题
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

--bug=1049620 --user=刘瑞斌 【应用编排】文件上传设置没勾选文档也没勾选图片,发布后对话还是能上传文档和图片 https://www.tapd.cn/57709429/s/1618519
This commit is contained in:
CaptainB 2024-11-27 12:27:27 +08:00 committed by 刘瑞斌
parent 59f5c8ac76
commit b7905198a2

View File

@ -217,6 +217,9 @@ const getAcceptList = () => {
accepts = [...accepts, ...videoExtensions]
}
// console.log(accepts)
if (accepts.length === 0) {
return '.请在文件上传配置中选择文件类型'
}
return accepts.map((ext: any) => '.' + ext).join(',')
}