|
|
|
@ -569,13 +569,11 @@ export default {
|
|
|
|
this.remove()
|
|
|
|
this.remove()
|
|
|
|
this.isSignatureStarted = true
|
|
|
|
this.isSignatureStarted = true
|
|
|
|
|
|
|
|
|
|
|
|
this.drawOnCanvas(this.$refs.canvas)
|
|
|
|
this.drawOnCanvas(event.target.files[0], this.$refs.canvas)
|
|
|
|
|
|
|
|
|
|
|
|
this.uploadImageInputKey = Math.random().toString()
|
|
|
|
this.uploadImageInputKey = Math.random().toString()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
drawOnCanvas (canvas) {
|
|
|
|
drawOnCanvas (file, canvas) {
|
|
|
|
const file = event.target.files[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (file && file.type.match('image.*')) {
|
|
|
|
if (file && file.type.match('image.*')) {
|
|
|
|
const reader = new FileReader()
|
|
|
|
const reader = new FileReader()
|
|
|
|
|
|
|
|
|
|
|
|
|