From 48684262415b487e368aa62cbcdbf8b305cfd561 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 26 Nov 2020 13:01:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E5=AF=BC=E5=87=BA=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/report/PerformanceReportView.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index 106a75fb54..1257af30cd 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -271,12 +271,14 @@ export default { let reset = this.exportReportReset; this.$nextTick(function () { - html2canvas(document.getElementById('performanceReportExport'), { - scale: 2 - }).then(function (canvas) { - exportPdf(name, [canvas]); - reset(); - }); + setTimeout(() => { + html2canvas(document.getElementById('performanceReportExport'), { + scale: 2 + }).then(function (canvas) { + exportPdf(name, [canvas]); + reset(); + }); + }, 1000); }); }, exportReportReset() {