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