diff --git a/frontend/src/components/widget/DeWidget/customInput.js b/frontend/src/components/widget/DeWidget/customInput.js index e6d8ccf852..b33449e1c9 100644 --- a/frontend/src/components/widget/DeWidget/customInput.js +++ b/frontend/src/components/widget/DeWidget/customInput.js @@ -51,7 +51,11 @@ 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]) + } else { + document.documentElement.style.removeProperty(cssVar[index]) + } }) }, } diff --git a/frontend/src/views/system/datasource/DsConfiguration.vue b/frontend/src/views/system/datasource/DsConfiguration.vue index c1c0b02a60..b9cec2f697 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -497,7 +497,7 @@ row-key="jsonPath" ref="apiItemTable" > - +