From eaf0d77abc4fa4873f0594dec99864dd45972360 Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 30 Oct 2024 17:08:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=20pdf=20=E5=9B=BE=E7=89=87=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useExportPDF.ts | 1 + frontend/src/views/test-plan/report/detail/exportPDF.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/useExportPDF.ts b/frontend/src/hooks/useExportPDF.ts index 805b608ceb..c206daeb1c 100644 --- a/frontend/src/hooks/useExportPDF.ts +++ b/frontend/src/hooks/useExportPDF.ts @@ -49,6 +49,7 @@ export default async function exportPDF( height: element.clientHeight, backgroundColor: '#f9f9fe', scale: SCALE_RATIO, // 缩放增加清晰度 + useCORS: true, }); pdf.setFont('AlibabaPuHuiTi-3-55-Regular'); pdf.setFontSize(10); diff --git a/frontend/src/views/test-plan/report/detail/exportPDF.vue b/frontend/src/views/test-plan/report/detail/exportPDF.vue index e2ccec0933..63033756d4 100644 --- a/frontend/src/views/test-plan/report/detail/exportPDF.vue +++ b/frontend/src/views/test-plan/report/detail/exportPDF.vue @@ -97,7 +97,7 @@
-
+
{{ t(item.label) }}