mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Fix:修复没有设置过背景样式的情况下销毁思维导图报错的问题
This commit is contained in:
parent
3b03d9798b
commit
662447bc69
@ -29,6 +29,7 @@ class Style {
|
||||
|
||||
// 移除背景样式
|
||||
static removeBackgroundStyle(el) {
|
||||
if (!Style.cacheStyle) return
|
||||
backgroundStyleProps.forEach((prop) => {
|
||||
el.style[prop] = Style.cacheStyle[prop]
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user