From 5bbe94728e048f01ff0b82228990ed313894b200 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Fri, 19 Jun 2020 17:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=8D=E5=88=86=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/Trend.vue | 1 - src/components/page/PageHeader.vue | 2 +- src/components/setting/Setting.vue | 6 +++++- .../transition/PageToggleTransition.vue | 8 ++++---- src/layouts/GlobalHeader.vue | 1 + src/layouts/GlobalLayout.vue | 17 ++--------------- src/layouts/MenuView.vue | 4 ++-- src/layouts/PageLayout.vue | 4 ++-- src/pages/dashboard/Analysis.vue | 14 +++++++------- src/pages/list/search/ApplicationList.vue | 5 +++-- src/pages/list/search/ProjectList.vue | 3 ++- src/store/modules/setting.js | 6 +++++- 12 files changed, 34 insertions(+), 37 deletions(-) diff --git a/src/components/chart/Trend.vue b/src/components/chart/Trend.vue index ca6482a..2274afd 100644 --- a/src/components/chart/Trend.vue +++ b/src/components/chart/Trend.vue @@ -66,7 +66,6 @@ export default { .chart-trend{ display: inline-block; font-size: 14px; - line-height: 22px; .chart-trend-icon{ font-size: 12px; &.up{ diff --git a/src/components/page/PageHeader.vue b/src/components/page/PageHeader.vue index d583778..bb62215 100644 --- a/src/components/page/PageHeader.vue +++ b/src/components/page/PageHeader.vue @@ -104,7 +104,7 @@ export default { margin-right: 16px; } .content{ - margin-bottom: 16px; + /*margin-bottom: 16px;*/ flex: auto; } .extra{ diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue index dd20ba3..d0811bc 100644 --- a/src/components/setting/Setting.vue +++ b/src/components/setting/Setting.vue @@ -116,7 +116,11 @@ export default { onColorChange (values, colors) { if (colors.length > 0) { let closeMessage = this.$message.info(`您选择了主题色 ${colors}, 正在切换...`) - themeUtil.changeThemeColor(colors[0]).then(closeMessage) + let _this = this + themeUtil.changeThemeColor(colors[0]).then(() => { + _this.$store.commit('setting/setThemeColor', colors[0]) + closeMessage() + }) } }, setTheme (values) { diff --git a/src/components/transition/PageToggleTransition.vue b/src/components/transition/PageToggleTransition.vue index feaa9fd..d8bc902 100644 --- a/src/components/transition/PageToggleTransition.vue +++ b/src/components/transition/PageToggleTransition.vue @@ -75,13 +75,13 @@