修复pdf无法导出图片问题
This commit is contained in:
@@ -1 +1 @@
|
|||||||
{"pid":26648,"startedAt":1787847660038}
|
{"pid":21228,"startedAt":1788141590195}
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,9 +1,8 @@
|
|||||||
import { jsPDF } from 'jspdf'
|
import { jsPDF } from 'jspdf'
|
||||||
import html2canvas from 'html2canvas'
|
import html2canvas from 'html2canvas'
|
||||||
import * as pdfjsLib from 'pdfjs-dist'
|
import * as pdfjsLib from 'pdfjs-dist'
|
||||||
import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?url'
|
|
||||||
|
|
||||||
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker
|
pdfjsLib.GlobalWorkerOptions.workerSrc = '/pdfjs/pdf.worker.min.mjs'
|
||||||
|
|
||||||
const PAGE_WIDTH = 794
|
const PAGE_WIDTH = 794
|
||||||
const PAGE_HEIGHT = 1123
|
const PAGE_HEIGHT = 1123
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import * as pdfjsLib from 'pdfjs-dist'
|
import * as pdfjsLib from 'pdfjs-dist'
|
||||||
import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?url'
|
|
||||||
|
|
||||||
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker
|
pdfjsLib.GlobalWorkerOptions.workerSrc = '/pdfjs/pdf.worker.min.mjs'
|
||||||
|
|
||||||
const MAX_SINGLE_INVOICE = 99999.99
|
const MAX_SINGLE_INVOICE = 99999.99
|
||||||
const roundAmount = value => Math.round(Number(value) * 100) / 100
|
const roundAmount = value => Math.round(Number(value) * 100) / 100
|
||||||
|
|||||||
Reference in New Issue
Block a user