图片大小

This commit is contained in:
bb_pan 2025-03-31 12:20:48 +08:00
parent a6e3ca99bb
commit d9e319d378
1 changed files with 2 additions and 2 deletions

View File

@ -211,9 +211,9 @@ export default {
)
return false
}
const isLt = file.size / 1024 / 1024 < 10
const isLt = file.size / 1024 / 1024 < 100
if (!isLt) {
this.$modal.msgError(`图片大小不能超过 10 MB`)
this.$modal.msgError(`图片大小不能超过 100 MB`)
return false
}
this.$modal.loading('图片正在上传,请稍候...')