fix(性能测试): 报告导出样式问题

This commit is contained in:
chenjianxing 2020-11-26 13:01:07 +08:00
parent 23a450119e
commit 4868426241
1 changed files with 8 additions and 6 deletions

View File

@ -271,12 +271,14 @@ export default {
let reset = this.exportReportReset; let reset = this.exportReportReset;
this.$nextTick(function () { this.$nextTick(function () {
setTimeout(() => {
html2canvas(document.getElementById('performanceReportExport'), { html2canvas(document.getElementById('performanceReportExport'), {
scale: 2 scale: 2
}).then(function (canvas) { }).then(function (canvas) {
exportPdf(name, [canvas]); exportPdf(name, [canvas]);
reset(); reset();
}); });
}, 1000);
}); });
}, },
exportReportReset() { exportReportReset() {