Skip to content

Commit 47bdfe7

Browse files
committed
修复原图编辑bug
1 parent 2e07ca0 commit 47bdfe7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Crop.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ function cropper(imgSrc,cropperFileE,w,h)
158158
},
159159
btn2:function(){
160160
//默认关闭框
161+
cropperFileE.nextAll('.cropper-img').attr('src',imgSrc);
162+
//替换提交数据
163+
cropperFileE.nextAll('.cropper-input').val(imgSrc);
161164
//销毁剪裁器实例
162165
cropper.destroy();
163166
},

0 commit comments

Comments
 (0)