mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 04:29:36 +08:00
Merge branch 'master' of https://gitee.com/elegant_wings/dbd-meeting-html
This commit is contained in:
commit
e715e75809
@ -326,9 +326,9 @@ export default {
|
||||
if (!isJpgOrPng) {
|
||||
this.$message.error('You can only upload JPG file!')
|
||||
}
|
||||
const isLt2M = file.size / 1024 < 500
|
||||
const isLt2M = file.size / 1024 < 5000
|
||||
if (!isLt2M) {
|
||||
this.$message.error('图片必须小于 500kb!')
|
||||
this.$message.error('图片必须小于 5M!')
|
||||
}
|
||||
return isJpgOrPng && isLt2M
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user