From 879de57b4914209e79dbb28e8545e3bf8fa96667 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 20 Nov 2023 16:26:35 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=A8=A1=E5=BC=8F=E4=B8=8B=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=AD=98=E5=9C=A8 =E6=97=B6=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=B8=BA=E5=9B=BE=E7=89=87=E5=87=BA=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/plugins/Export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-mind-map/src/plugins/Export.js b/simple-mind-map/src/plugins/Export.js index 47bd579e..eef16838 100644 --- a/simple-mind-map/src/plugins/Export.js +++ b/simple-mind-map/src/plugins/Export.js @@ -188,7 +188,6 @@ class Export { */ async png(name, transparent = false, checkRotate) { let { node, str } = await this.getSvgData() - str = removeHTMLEntities(str) // 如果开启了富文本,则使用htmltocanvas转换为图片 if (this.mindMap.richText) { // 覆盖html默认的样式 @@ -208,6 +207,7 @@ class Export { // ) // return imgDataUrl } + str = removeHTMLEntities(str) // 转换成blob数据 let blob = new Blob([str], { type: 'image/svg+xml'