mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
fix upload signature
This commit is contained in:
1 parent
ff6ff3a51e
commit
96cf228e74
2 files changed
+3
-5
No files matched your search
@@ -257,7 +257,7 @@ export default {
|
||||
this.remove()
|
||||
this.isInitialsStarted = true
|
||||
|
||||
this.drawOnCanvas(this.$refs.canvas)
|
||||
this.drawOnCanvas(event.target.files[0], this.$refs.canvas)
|
||||
|
||||
this.uploadImageInputKey = Math.random().toString()
|
||||
},
|
||||
|
||||
@@ -569,13 +569,11 @@ export default {
|
||||
this.remove()
|
||||
this.isSignatureStarted = true
|
||||
|
||||
this.drawOnCanvas(this.$refs.canvas)
|
||||
this.drawOnCanvas(event.target.files[0], this.$refs.canvas)
|
||||
|
||||
this.uploadImageInputKey = Math.random().toString()
|
||||
},
|
||||
drawOnCanvas (canvas) {
|
||||
const file = event.target.files[0]
|
||||
|
||||
drawOnCanvas (file, canvas) {
|
||||
if (file && file.type.match('image.*')) {
|
||||
const reader = new FileReader()
|
||||
|
||||
|
||||
Reference in new issue
Block a user