|
@@ -127,17 +127,16 @@ export default { |
|
|
console.log(this.option) |
|
|
console.log(this.option) |
|
|
this.pushImg({ file: this.option.img }) |
|
|
this.pushImg({ file: this.option.img }) |
|
|
|
|
|
|
|
|
// this.$refs.cropper.getCropBlob((data) => { |
|
|
|
|
|
// // formData.append('headFile', data, this.imageFileName) |
|
|
|
|
|
// // formData.append('id', this.$store.getters.user.userId) |
|
|
|
|
|
// console.log(data) |
|
|
|
|
|
// // uploadAva(formData).then((res) => { |
|
|
|
|
|
// // this.showCropper = false |
|
|
|
|
|
// // this.$emit('update:showAta', false) |
|
|
|
|
|
// // this.$emit('update:avaUrl', res.data) |
|
|
|
|
|
// // }) |
|
|
|
|
|
// this.pushImg({ file: data }) |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
this.$refs.cropper.getCropBlob((data) => { |
|
|
|
|
|
// formData.append('headFile', data, this.imageFileName) |
|
|
|
|
|
// formData.append('id', this.$store.getters.user.userId) |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
// uploadAva(formData).then((res) => { |
|
|
|
|
|
// this.showCropper = false |
|
|
|
|
|
// this.$emit('update:showAta', false) |
|
|
|
|
|
// this.$emit('update:avaUrl', res.data) |
|
|
|
|
|
// }) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onClickLeft() { |
|
|
onClickLeft() { |
|
|
this.loadingShow = false |
|
|
this.loadingShow = false |
|
|