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)