fix(CropperModal): beforeUpload should return false (#3601)

This commit is contained in:
xachary 2024-02-19 11:37:55 +08:00 committed by GitHub
parent 5ec4446443
commit b6bcf8d36d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);