Commit 786b1dcd authored by zhanglongbao's avatar zhanglongbao

fix

parent 868f29c9
......@@ -151,7 +151,7 @@ export const uploadFile = (props: UploadFile) => {
}
// 验证文件大小
if (file.size > (props?.size || 5) * 1024 * 1024) {
if (props.size && file.size > (props?.size || 5) * 1024 * 1024) {
$toast({
type: "warning",
message: `文件大小不能超过 ${props.size}MB`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment