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

@@ -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')