Skip to content

Commit

Permalink
修复二次原图上传的前端bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EVA09 committed Apr 27, 2020
1 parent a261a10 commit 0beaae1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Crop.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ function cropper(imgSrc,cropperFileE,w,h)
//默认关闭框
cropperFileE.nextAll('.cropper-img').attr('src',imgSrc);
//替换提交数据
if (cropperFileE.nextAll('.cropper-input').val() == '') {
cropperFileE.nextAll('.cropper-input').val(imgSrc);
}
cropperFileE.nextAll('.cropper-input').val(imgSrc);
//销毁剪裁器实例
cropper.destroy();
},
Expand Down

0 comments on commit 0beaae1

Please sign in to comment.