From 662447bc694e0988561acfa19315d4fd27ee7475 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 12 Jun 2023 17:42:01 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=AE=BE=E7=BD=AE=E8=BF=87=E8=83=8C=E6=99=AF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E9=94=80=E6=AF=81?= =?UTF-8?q?=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE=E6=8A=A5=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/core/render/node/Style.js | 1 + 1 file changed, 1 insertion(+) diff --git a/simple-mind-map/src/core/render/node/Style.js b/simple-mind-map/src/core/render/node/Style.js index 3ffa9a82..f6816580 100644 --- a/simple-mind-map/src/core/render/node/Style.js +++ b/simple-mind-map/src/core/render/node/Style.js @@ -29,6 +29,7 @@ class Style { // 移除背景样式 static removeBackgroundStyle(el) { + if (!Style.cacheStyle) return backgroundStyleProps.forEach((prop) => { el.style[prop] = Style.cacheStyle[prop] })