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