mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复在节点文本编辑中调用destroy方法时setBackgroundStyle方法会报错的问题
This commit is contained in:
parent
b895a58194
commit
dd3e169946
@ -12,6 +12,7 @@ const backgroundStyleProps = [
|
||||
class Style {
|
||||
// 设置背景样式
|
||||
static setBackgroundStyle(el, themeConfig) {
|
||||
if (!this.el) return
|
||||
// 缓存容器元素原本的样式
|
||||
if (!Style.cacheStyle) {
|
||||
Style.cacheStyle = {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user