feat: 更新系统名称为MOM/BOM分类分组展示/上传组件增强(删除确认+压缩包150MB)

This commit is contained in:
dxc
2026-05-12 15:45:41 +08:00
parent 6b4ebfa24f
commit f2f9409206
3 changed files with 3 additions and 3 deletions

View File

@ -1566,7 +1566,7 @@ const beforeAvatarUpload = (rawFile: any) => {
return false;
}
const isCompressed = ['application/zip', 'application/x-zip-compressed', 'application/x-rar-compressed', 'application/vnd.rar', 'application/x-7z-compressed'].includes(rawFile.type);
const maxMB = isCompressed ? 50 : 10;
const maxMB = 150;
if (rawFile.size / 1024 / 1024 > maxMB) {
ElMessage.error(`文件不能超过 ${maxMB}MB`);
return false;