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