fix: 过滤器背景色透明

This commit is contained in:
dataeaseShu 2022-08-03 17:04:55 +08:00
parent ad1fc8f829
commit cd1817119a

View File

@ -51,7 +51,9 @@ export default {
const newValue = { brColor, wordColor, innerBgColor }
const cssVar = this.typeTransform()
this.styleAttrs.forEach((ele, index) => {
document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele])
if (newValue[ele]) {
document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele])
}
})
},
}