From 7e94fe38920330e9396432d131dc55adceee5226 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 3 Apr 2024 11:19:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=8E=86=E5=8F=B2=E4=B8=BB=E9=A2=98=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=AA=E8=A1=A8=E6=9D=BF=E8=83=8C=E6=99=AF=E9=80=8F?= =?UTF-8?q?=E6=98=8E=E5=BA=A6=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/store/index.js | 1 + .../src/views/panel/subjectSetting/panelStyle/OverallSetting.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/core/frontend/src/store/index.js b/core/frontend/src/store/index.js index e16296b2a8..e2a6bcd487 100644 --- a/core/frontend/src/store/index.js +++ b/core/frontend/src/store/index.js @@ -192,6 +192,7 @@ const data = { if (style) { style['selfAdaption'] = true } + style.panel['alpha'] = style.panel['alpha'] === undefined ? 100 : style.panel['alpha'] state.canvasStyleData = style }, diff --git a/core/frontend/src/views/panel/subjectSetting/panelStyle/OverallSetting.vue b/core/frontend/src/views/panel/subjectSetting/panelStyle/OverallSetting.vue index b51facd0e0..de730b1f61 100644 --- a/core/frontend/src/views/panel/subjectSetting/panelStyle/OverallSetting.vue +++ b/core/frontend/src/views/panel/subjectSetting/panelStyle/OverallSetting.vue @@ -242,6 +242,7 @@ export default { // 主题变更 this.canvasStyleData.chartInfo.chartCommonStyle.backgroundColorSelect = true this.canvasStyleData.panel.backgroundType = 'color' + this.canvasStyleData.panel['alpha'] = 100 if (this.overallSettingForm.panel.themeColor === 'light') { this.canvasStyleData.panel.color = deepCopy(LIGHT_THEME_PANEL_BACKGROUND) this.canvasStyleData.chartInfo.chartCommonStyle.color = deepCopy(LIGHT_THEME_COMPONENT_BACKGROUND)