mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-08 14:15:35 +08: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