修复上传文件大小校验

This commit is contained in:
xiaozzzi 2023-10-04 23:23:00 +08:00
parent 264258f8ea
commit 5da0b21e3a

View File

@ -24,7 +24,7 @@ export interface Picture {
* @returns
*/
export const beforeUpload: UploadProps['beforeUpload'] = (rawFile) => {
if (rawFile.size / 1024 / 1024 > 10) {
if (rawFile.size / 1024 / 1024 > 50) {
Notify.error('文件大小不能超过 50MB!', '上传失败')
return false
}