Vue 中使用html2canvas实现截图并解决svg元素偏移的问题
一:下载依赖yarn add html2canvasyarn add canvg@2.0.0-beta.1 canvas@^2 jsdom@^13 xmldom@^0.6.0二:文件中引入import html2canvas from 'html2canvas'import canvg from 'canvg'三:截图的方法// 截图 infoScreenshot () { setTimeout( ()=> { let refId =