Merge pull request #2778 from dataease/pr@dev_bag_clear

Pr@dev bag clear
This commit is contained in:
dataeaseShu 2022-08-03 17:06:47 +08:00 committed by GitHub
commit f2c0d5082f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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