From 87e00fb3d51f92413aab690f8b26f94743ea0a18 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 18 Nov 2022 16:30:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA=E6=8A=A5=E5=91=8A=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E9=94=99=E4=B9=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/sdk-parent/frontend/src/utils/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/sdk-parent/frontend/src/utils/index.js b/framework/sdk-parent/frontend/src/utils/index.js index f8e6f6fc27..79d9c4f31f 100644 --- a/framework/sdk-parent/frontend/src/utils/index.js +++ b/framework/sdk-parent/frontend/src/utils/index.js @@ -168,7 +168,7 @@ export function exportPdf(name, canvasList) { let blankHeight = a4Height - currentHeight; if (leftHeight > blankHeight) { - if (blankHeight < 200) { + if (blankHeight < 300) { pdf.addPage(); currentHeight = 0; } @@ -182,10 +182,10 @@ export function exportPdf(name, canvasList) { leftHeight -= occupation; position -= occupation; //避免添加空白页 - // if (leftHeight > 0) { - // pdf.addPage(); - // currentHeight = 0; - // } + if (leftHeight > 0) { + pdf.addPage(); + currentHeight = 0; + } } } else { pdf.addImage(pageData, 'JPEG', 0, currentHeight, imgWidth, imgHeight);