From 24f23bc9b3bd4e9f29a4074a2f7fb80f49cb9707 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Sun, 21 Jun 2020 12:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=89=B2=E5=BC=B1=E6=A8=A1=E5=BC=8F=E6=97=B6=EF=BC=8C=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E9=A2=9C=E8=89=B2=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/setting/Setting.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue index 8cd0eeb..cc0572e 100644 --- a/src/components/setting/Setting.vue +++ b/src/components/setting/Setting.vue @@ -7,7 +7,7 @@ - + @@ -93,7 +93,7 @@ import { mapState } from 'vuex' const ColorCheckboxGroup = ColorCheckbox.Group const ImgCheckboxGroup = ImgCheckbox.Group - +const colors = ['#f5222d', '#fa541c', '#faad14', '#13c2c2', '#52c41a', '#1890ff', '#2f54eb', '#722ed1'] export default { name: 'Setting', components: {ImgCheckboxGroup, ImgCheckbox, ColorCheckboxGroup, ColorCheckbox, SettingItem}, @@ -101,7 +101,8 @@ export default { return { animate: this.$store.state.setting.animate.name, direction: this.$store.state.setting.animate.direction, - colors: ['#f5222d', '#fa541c', '#faad14', '#13c2c2', '#52c41a', '#1d92ff', '#2f54eb', '#722ed1'], + themeColorIndex: [colors.indexOf(this.$store.state.setting.themeColor)], + colors, } }, watch: {