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