From 0442380fb528076fc9497997f99cb58ddfe8282d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 18 Jun 2024 11:53:42 +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=E5=8E=86=E5=8F=B2=E4=B8=BB=E9=A2=98=E6=9C=AA=E9=80=82?= =?UTF-8?q?=E9=85=8D=E9=AB=98=E7=BA=A7=E9=85=8D=E7=BD=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/dvMain.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 0271bbda48..80accc932d 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -4,7 +4,8 @@ import { deepCopy } from '@/utils/utils' import { BASE_VIEW_CONFIG, DEFAULT_INDICATOR_NAME_STYLE, - DEFAULT_INDICATOR_STYLE + DEFAULT_INDICATOR_STYLE, + SENIOR_STYLE_SETTING_LIGHT } from '@/views/chart/components/editor/util/chart' import { DEFAULT_CANVAS_STYLE_DATA_DARK, @@ -224,6 +225,8 @@ export const dvMainStore = defineStore('dataVisualization', { }, setCanvasStyle(style) { + style.component['seniorStyleSetting'] = + style.component['seniorStyleSetting'] || deepCopy(SENIOR_STYLE_SETTING_LIGHT) this.canvasStyleData = style }, setCanvasViewInfo(canvasViewInfo) {