zhangjie 6 tháng trước cách đây
mục cha
commit
661625c0eb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/plugins/htmlToPdf.js

+ 2 - 2
src/plugins/htmlToPdf.js

@@ -31,9 +31,9 @@ export async function buildPdf(
   const mergedPdf = await buildPdfFromElements(elements, opt);
 
   if (returnBlob) {
-    return await mergedPdf.outputPdf("blob");
+    return await mergedPdf.output("blob");
   } else {
-    console.log(filename);
+    // console.log(filename);
     await mergedPdf.save(filename);
   }
 }