From 5a86c2d9ddc770510064e51f7a74cdc83e3deb68 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Wed, 3 Aug 2022 17:18:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=85=BC=E5=AE=B9=E6=B8=85=E7=A9=BA=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/customInput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/widget/DeWidget/customInput.js b/frontend/src/components/widget/DeWidget/customInput.js index 20034fc48e..b33449e1c9 100644 --- a/frontend/src/components/widget/DeWidget/customInput.js +++ b/frontend/src/components/widget/DeWidget/customInput.js @@ -53,6 +53,8 @@ export default { this.styleAttrs.forEach((ele, index) => { if (newValue[ele]) { document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele]) + } else { + document.documentElement.style.removeProperty(cssVar[index]) } }) },