Fix:修复在节点文本编辑中调用destroy方法时setBackgroundStyle方法会报错的问题

This commit is contained in:
街角小林 2024-10-21 09:37:13 +08:00
parent b895a58194
commit dd3e169946

View File

@ -12,6 +12,7 @@ const backgroundStyleProps = [
class Style {
// 设置背景样式
static setBackgroundStyle(el, themeConfig) {
if (!this.el) return
// 缓存容器元素原本的样式
if (!Style.cacheStyle) {
Style.cacheStyle = {}