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 @@