Ver Fonte

fix:bug

zhangjie há 6 meses atrás
pai
commit
661625c0eb
1 ficheiros alterados com 2 adições e 2 exclusões
  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);
   }
 }