From c57861c60299aa206379b0e57c0a968698f37fa5 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 30 Sep 2022 16:09:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=A4=8D?= =?UTF-8?q?=E7=94=A8tab=E7=BB=84=E4=BB=B6=E6=97=B6=EF=BC=8C=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E7=9A=84=E9=A2=9C=E8=89=B2=E8=BE=B9=E6=A1=86=E5=80=BC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/utils/style.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js index 538a9e05f2..9b23117cc4 100644 --- a/frontend/src/components/canvas/utils/style.js +++ b/frontend/src/components/canvas/utils/style.js @@ -380,7 +380,11 @@ export function adaptCurThemeCommonStyle(component) { } else if (isTabComponent(component.component)) { const tabStyle = store.state.canvasStyleData.chartInfo.tabStyle for (const styleKey in tabStyle) { - Vue.set(component.style, styleKey, tabStyle[styleKey]) + if(typeof tabStyle[styleKey] === 'string'){ + Vue.set(component.style, styleKey, tabStyle[styleKey]) + }else{ + Vue.set(component.style, styleKey, null) + } } } else { if (component.style.color) {