二期:文件大小改为500M

This commit is contained in:
朱浩 2024-08-07 11:12:38 +08:00
parent 528e7876a9
commit a55a662ce9
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ export default {
file.callback(res)
},
beforeUpload(file) {
const MAX_SIZE = 100 * 1024 * 1024 // 2MB
const MAX_SIZE = 500 * 1024 * 1024 // 2MB
if (file.size > MAX_SIZE) {
this.$message.error('文件大小不能超过 100MB!')
return false

View File

@ -17,7 +17,7 @@ const uploaderStore = defineStore('uploader', {
pushFile(payload) {
let _this = this
let arr = payload.filter((item) => {
const MAX_SIZE = 100 * 1024 * 1024; // 2MB
const MAX_SIZE = 500 * 1024 * 1024; // 2MB
if (item.size > MAX_SIZE) {
ElMessage.error('文件大小不能超过 100MB!');
return false;