首页修改

This commit is contained in:
仲么了
2023-08-23 16:22:08 +08:00
parent cc63cda4e7
commit 79d6771aad
34 changed files with 788 additions and 403 deletions

View File

@@ -34,10 +34,12 @@ export default {
let dom = document.getElementById(domId);
console.log(dom.offsetWidth, dom.offsetHeight);
html2canvas(dom, {
scale: 2,
useCORS: true,
dpi: 300,
taintTest: true,
scrollX:0,
scrollY:0,
width: dom.offsetWidth,
height: dom.offsetHeight,
allowTaint:true
}).then((canvas) => {
// this.$refs.header.appendChild(canvas);
const posterImg = canvas.toDataURL()