From 98e02874ed09cf28f8a7d27308f04df9e239e6d6 Mon Sep 17 00:00:00 2001
From: iczer <1126263215@qq.com>
Date: 星期四, 02 七月 2020 22:41:21 +0800
Subject: [PATCH] chore: optimizing the implementation logic of theme color modification; :star2:

---
 src/components/setting/Setting.vue |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue
index 83de32b..ab6b60f 100644
--- a/src/components/setting/Setting.vue
+++ b/src/components/setting/Setting.vue
@@ -84,7 +84,6 @@
 import ColorCheckbox from '../checkbox/ColorCheckbox'
 import ImgCheckbox from '../checkbox/ImgCheckbox'
 import Clipboard from 'clipboard'
-import themeUtil from '../../utils/themeUtil'
 import { mapState, mapMutations } from 'vuex'
 
 const ColorCheckboxGroup = ColorCheckbox.Group
@@ -112,12 +111,7 @@
   methods: {
     onColorChange (values, colors) {
       if (colors.length > 0) {
-        let closeMessage = this.$message.loading(`鎮ㄩ�夋嫨浜嗕富棰樿壊 ${colors}, 姝e湪鍒囨崲...`)
-        let _this = this
-        themeUtil.changeThemeColor(colors[0]).then(() => {
-          _this.setThemeColor(colors[0])
-          closeMessage()
-        })
+        this.setThemeColor(colors[0])
       }
     },
     copyCode () {

--
Gitblit v1.9.1