|
|
@@ -611,7 +611,8 @@ var app = new Vue({
|
|
|
image.src = _this.cropParams.url;
|
|
|
var width = image.width;
|
|
|
var height = image.height;
|
|
|
- if(height<width){
|
|
|
+ console.log(image);
|
|
|
+ if(data.height<data.width){
|
|
|
$("#cropImg").cropper("rotate", 90);
|
|
|
}
|
|
|
var cwidth = $(".cropper-canvas").outerWidth();
|