This commit is contained in:
yanran200730
2022-05-30 17:13:17 +08:00
parent 46e96a591d
commit c0dd166af3
5 changed files with 33 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
save () {
this.$loading()
this.$refs.reportItem.screenshot().then(canvas => {
this.$refs.reportItem.screenshot() && this.$refs.reportItem.screenshot().then(canvas => {
let dataURL = canvas.toDataURL('image/png')
const file = this.dataURLtoFile(dataURL, 'photo.png')
let formData = new FormData()