This commit is contained in:
pplokijuhyg 2020-02-07 18:44:52 +08:00
parent 7bab6fda42
commit a012b3b4fa

View File

@ -40,9 +40,7 @@ $(".download").click(() => {
useCORS: true,
background: null,
windowWidth:document.body.scrollWidth,
windowHeight:document.body.scrollHeight,
x:(document.body.scrollWidth - width)/2,
y:0
windowHeight:document.body.scrollHeight
}).then(canvas => {
let imgUrl = Canvas2Image.convertToPNG(canvas,$("#app").width(),$("#app").height())
imgUrl = $(imgUrl).attr('src')