From cd1817119a7a0ef03bd640a53085c0684b4aad6e Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Wed, 3 Aug 2022 17:04:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E5=99=A8=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=89=B2=E9=80=8F=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/customInput.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/widget/DeWidget/customInput.js b/frontend/src/components/widget/DeWidget/customInput.js index e6d8ccf852..20034fc48e 100644 --- a/frontend/src/components/widget/DeWidget/customInput.js +++ b/frontend/src/components/widget/DeWidget/customInput.js @@ -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]) + } }) }, }