Fix lint errors
This commit is contained in:
parent
2de756aa0c
commit
3094c50ff9
1 changed files with 6 additions and 2 deletions
|
@ -69,8 +69,12 @@ const ImageCropper = {
|
||||||
this.avatarUploadError = null
|
this.avatarUploadError = null
|
||||||
this.submitHandler(this.cropper, this.filename)
|
this.submitHandler(this.cropper, this.filename)
|
||||||
.then(() => this.destroy())
|
.then(() => this.destroy())
|
||||||
.catch(err => this.submitError = err)
|
.catch((err) => {
|
||||||
.finally(() => this.submitting = false)
|
this.submitError = err
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.submitting = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
pickImage () {
|
pickImage () {
|
||||||
this.$refs.input.click()
|
this.$refs.input.click()
|
||||||
|
|
Loading…
Reference in a new issue