Commit 3e705fee by Lyan

bug

parent 5dc0212d
......@@ -290,6 +290,7 @@ export default {
},
// 上传之前校验
beforeAvatarUpload (file) {
this.imgUrl = new FormData()
const isJPG = file.type === 'image/jpeg'
const isPNG = file.type === 'image/png'
const isLt2M = file.size / 1024 / 1024 < 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment