mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
测评上传修改上传文件大小限制
This commit is contained in:
@@ -1271,6 +1271,11 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
state.stateUpload = false
|
||||
return false;
|
||||
}
|
||||
let isLt1M = file.size < 1024000000;
|
||||
if (!isLt1M) {
|
||||
message.error("图片大小超过1GB!");
|
||||
return false;
|
||||
}
|
||||
state.uploadDownLoad = true
|
||||
const formData = {
|
||||
// file: file,
|
||||
|
||||
Reference in New Issue
Block a user