@@ -635,9 +635,10 @@ var app = new Vue({
}
$("#cropImg").cropper(_this.options);
+ var data = $("#cropImg").cropper('getContainerData');
$("#cropImg").cropper('setData', {
- width: iWidth,
- height: iHeight
+ width: data.width,
+ height: data.height
});
},
// 确定剪切