This commit is contained in:
yanran200730
2022-05-27 16:43:10 +08:00
parent 0e8e82f321
commit 8c9c82cd81
3 changed files with 5 additions and 1 deletions

View File

@@ -201,6 +201,7 @@
} else {
this.$u.toast(res.msg)
}
uni.hideLoading()
})
}
})

View File

@@ -215,7 +215,8 @@
this.$nextTick(() => {
html2canvas(this.$refs.waterMarker, {
allowTaint: true,
useCORS: true
useCORS: true,
dpi: 300
}).then((canvas) => {
let dataURL = canvas.toDataURL('image/png')
const file = this.dataURLtoFile(dataURL, 'photo.png')

View File

@@ -169,6 +169,8 @@
} else {
this.$u.toast(res.msg)
}
uni.hideLoading()
})
}
})