This commit is contained in:
shijingjing
2023-03-03 14:06:26 +08:00
parent 115ffb9ac3
commit d4a8eaf204

View File

@@ -319,9 +319,9 @@ export default {
if (count > 9) {
return this.$u.toast(`不能超过9个`)
}
let maxImage = 10 * 1024 // 10M
let maxVideo = 10 * 1024 // 10M
let maxFile = 20 * 1024 // 20M
let maxImage = 10 * 1024 * 1024// 10M
let maxVideo = 10 * 1024 * 1024// 10M
let maxFile = 20 * 1024 * 1024// 20M
if (res.tempFiles) {
if(type == "image") {
if(res.tempFiles.every(e=> e.size > maxImage)) {