首页修改
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user