Fix:修复没有设置过背景样式的情况下销毁思维导图报错的问题

This commit is contained in:
wanglin2 2023-06-12 17:42:01 +08:00
parent 3b03d9798b
commit 662447bc69

View File

@ -29,6 +29,7 @@ class Style {
// 移除背景样式
static removeBackgroundStyle(el) {
if (!Style.cacheStyle) return
backgroundStyleProps.forEach((prop) => {
el.style[prop] = Style.cacheStyle[prop]
})