diff --git a/ui/src/components/pdf-export/index.vue b/ui/src/components/pdf-export/index.vue index 0e08eb94f..09de9248a 100644 --- a/ui/src/components/pdf-export/index.vue +++ b/ui/src/components/pdf-export/index.vue @@ -10,7 +10,12 @@ >
@@ -117,6 +122,8 @@ const exportPDF = () => { nextTick(() => { html2Canvas(svgContainerRef.value, { logging: false, + allowTaint: true, + useCORS: true, }) .then((canvas) => { const doc = new jsPDF('p', 'mm', 'a4') @@ -162,6 +169,8 @@ const exportJepg = () => { nextTick(() => { html2Canvas(svgContainerRef.value, { logging: false, + allowTaint: true, + useCORS: true, }) .then((canvas) => { // 将canvas转换为图片