review:【antd】【mp】material、message 的迁移 v2

This commit is contained in:
YunaiV
2025-11-13 20:31:46 +08:00
parent 80bb508e78
commit e092ec737e
10 changed files with 27 additions and 5 deletions

View File

@@ -56,6 +56,7 @@ export const useBeforeUpload = (type: UploadType, maxSizeMB?: number) => {
const finalMaxSize = maxSizeMB ?? config.maxSizeMB;
// 格式不正确
// TODO @dylan貌似没国际化
if (!config.allowTypes.includes(rawFile.type)) {
message.error($t('mp.upload.invalidFormat', [config.name]));
return false;