Skip to content

Commit 0beaae1

Browse files
committed
修复二次原图上传的前端bug
1 parent a261a10 commit 0beaae1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Crop.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ function cropper(imgSrc,cropperFileE,w,h)
160160
//默认关闭框
161161
cropperFileE.nextAll('.cropper-img').attr('src',imgSrc);
162162
//替换提交数据
163-
if (cropperFileE.nextAll('.cropper-input').val() == '') {
164-
cropperFileE.nextAll('.cropper-input').val(imgSrc);
165-
}
163+
cropperFileE.nextAll('.cropper-input').val(imgSrc);
166164
//销毁剪裁器实例
167165
cropper.destroy();
168166
},

0 commit comments

Comments
 (0)