xachary
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/components/Cropper/src/CropperModal.vue
|
|
|
@ -152,7 +152,7 @@ |
|
|
|
function handleBeforeUpload(file: File) { |
|
|
|
if (props.size && file.size > 1024 * 1024 * props.size) { |
|
|
|
emit('uploadError', { msg: t('component.cropper.imageTooBig') }); |
|
|
|
return; |
|
|
|
return false; |
|
|
|
} |
|
|
|
const reader = new FileReader(); |
|
|
|
reader.readAsDataURL(file); |
|
|
|
|