|
|
@@ -467,8 +467,7 @@ var app = new Vue({
|
|
|
return false;
|
|
|
}
|
|
|
$("body").css('overflowY','hidden');
|
|
|
- /*_this.image = new Image();
|
|
|
- _this.image.src = data.url;*/
|
|
|
+ $("#cropImg").remove();
|
|
|
$(".crop-img").html('<img id="cropImg" src="" alt="" off="">');
|
|
|
var iWidth = $(".crop-img").outerWidth();
|
|
|
var iHeight = $(".crop-img").outerHeight();
|
|
|
@@ -527,7 +526,7 @@ var app = new Vue({
|
|
|
|
|
|
if (_this.jc != null) {
|
|
|
$image.cropper(_this.options);
|
|
|
- $image.cropper('replace', _this.cropParams.blobUrl);
|
|
|
+ _this.jc = $image.cropper('replace', _this.cropParams.blobUrl);
|
|
|
} else {
|
|
|
$image.cropper(_this.options);
|
|
|
_this.jc = $image.cropper('replace', _this.cropParams.blobUrl);
|