wesmiler 6 лет назад
Родитель
Сommit
77b00b0e75
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      public/static/weixin/js/photo.js

+ 2 - 1
public/static/weixin/js/photo.js

@@ -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();