wesmiler 6 년 전
부모
커밋
efe97206dc
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      public/static/weixin/js/photo.js

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

@@ -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
             });
         },
         // 确定剪切