diff --git a/src/components/Cropper/src/CropperModal.vue b/src/components/Cropper/src/CropperModal.vue index cf0f5651d..12cbf1ed0 100644 --- a/src/components/Cropper/src/CropperModal.vue +++ b/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);