mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-03 10:56:00 +00:00
fix(CropperModal): beforeUpload should return false (#3601)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user