xy 2 years ago
parent 077627b8f9
commit c2eae0a5d8

@ -1,6 +1,6 @@
module.exports = { module.exports = {
//无锡交通产业集团
title: '无锡交通产业集团资产管理平台', title: '资产管理平台',
/** /**
* @type {boolean} true | false * @type {boolean} true | false

@ -522,7 +522,13 @@ export default {
} }
const dom = document.querySelector('.print-content') const dom = document.querySelector('.print-content')
html2canvas(dom,{ html2canvas(dom,{
useCORS: true useCORS: true,
ignoreElements:ele => {
const ignoreIds = ['detail-pictures']
if (ignoreIds.indexOf(ele.id) !== -1) {
return true
}
}
}).then(canvas => { }).then(canvas => {
const img = new Image(); const img = new Image();
img.src = canvas.toDataURL('image/png'); img.src = canvas.toDataURL('image/png');

Loading…
Cancel
Save