From 448cb0e081a36d5385f0606ad15ce3b812f50a4c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 19 Dec 2022 08:54:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E5=AF=BC=E5=87=BA=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E6=B8=85=E6=99=B0=E5=BA=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020956 --user=赵勇 [接口测试]github#20738接口测试-测试报告-场景测试报告导出的PDF文件查看时比较模糊 https://www.tapd.cn/55049933/s/1316696 --- framework/sdk-parent/frontend/src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/utils/index.js b/framework/sdk-parent/frontend/src/utils/index.js index f1ec97426d..ebd7ad1184 100644 --- a/framework/sdk-parent/frontend/src/utils/index.js +++ b/framework/sdk-parent/frontend/src/utils/index.js @@ -411,7 +411,7 @@ export function downloadPDF(ele, pdfName) { let imgWidth = 595.28; let imgHeight = (595.28 / contentWidth) * contentHeight; - let pageData = canvas.toDataURL("image/jpeg", 0.1); + let pageData = canvas.toDataURL("image/jpeg", 1.0); let pdf = new JsPDF("", "pt", "a4"); //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89) //当内容未超过pdf一页显示的范围,无需分页