zhuhao_dev #104

Merged
zhuhao merged 6 commits from zhuhao_dev into main 2024-08-07 15:51:13 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit a55a662ce9 - Show all commits

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;