🛒 优化分享图片

This commit is contained in:
Hunlongyu
2020-10-22 14:23:38 +08:00
parent 49589102d9
commit 2eba0523bc

View File

@@ -91,7 +91,7 @@ export default {
})
},
picLoadEvent () {
const dom = document.getElementById('right')
const dom = document.getElementById('share')
html2canvas(dom, { useCORS: true, allowTaint: true }).then(res => {
const png = res.toDataURL('image/png')
const p = nativeImage.createFromDataURL(png)