Skip to content

Commit

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

0 comments on commit a261a10

Please sign in to comment.