Explorar el Código

Update CropperModal.vue

lex-xin hace 3 años
padre
commit
f7039616e6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/ImageCropper/CropperModal.vue

+ 1 - 1
src/components/ImageCropper/CropperModal.vue

@@ -86,7 +86,7 @@ export default {
       const that = this
       that.confirmLoading = true
       // 获取截图的base64 数据 getCropBlob getCropData
-      this.$refs.cropper.getCropData(async (data) => {
+      this.$refs.cropper.getCropBlob(async (data) => {
         const name = (this.options.name ? this.options.name.split('.')[0] : +new Date()) + '.png'
         let form = new FormData()
          form.append('file', this.blobToFile(data), name)