From ac3ad1681fc2ebb1962a3ed8bb2072664359d7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Tue, 2 Apr 2024 09:00:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=96=87=E6=9C=AC=E5=AD=98=E5=9C=A8svg=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9A=84=E5=AE=9E=E4=BD=93=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E6=97=B6=E5=B0=8F=E5=9C=B0=E5=9B=BE=E6=97=A0=E6=B3=95=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E7=9A=84=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/MiniMap.js | 5 +---- web/src/pages/Edit/components/NodeAttachment.vue | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/simple-mind-map/src/plugins/MiniMap.js b/simple-mind-map/src/plugins/MiniMap.js index b7763a2a..3372c779 100644 --- a/simple-mind-map/src/plugins/MiniMap.js +++ b/simple-mind-map/src/plugins/MiniMap.js @@ -93,10 +93,7 @@ class MiniMap { return { getImgUrl: async callback => { - const blob = new Blob([svgStr], { - type: 'image/svg+xml' - }) - const res = await readBlob(blob) + const res = await this.mindMap.doExport.fixSvgStrAndToBlob(svgStr) callback(res) }, svgHTML: svgStr, // 小地图html diff --git a/web/src/pages/Edit/components/NodeAttachment.vue b/web/src/pages/Edit/components/NodeAttachment.vue index 2a053060..2a0f51f7 100644 --- a/web/src/pages/Edit/components/NodeAttachment.vue +++ b/web/src/pages/Edit/components/NodeAttachment.vue @@ -93,7 +93,6 @@ export default { // 画布缩放事件 onScale() { - console.log(1) if (!this.node || !this.show) return this.updatePosition() },