wesmiler %!s(int64=6) %!d(string=hai) anos
pai
achega
77b00b0e75
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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();