From a6c08c2c5a2af91cbe27433d806b1860c0ab7865 Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 17 Aug 2021 09:18:46 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 82e77d074363a6535066726773d66a99d1277946 Author: sakuya <81883387@qq.com> Date: Mon Aug 16 23:05:07 2021 +0800 FIX 默认值 commit 9052ee5554bec25e812820bf04efbc77f68f6f2a Author: sakuya <81883387@qq.com> Date: Mon Aug 16 23:00:43 2021 +0800 ADD 主题颜色设置 --- src/App.vue | 14 +++++++++++++- src/config/index.js | 3 +++ src/layout/components/setting.vue | 17 ++++++++++++++++- src/style/fix.scss | 21 +++++++++++++++++++++ src/style/theme/dark.scss | 1 - src/utils/color.js | 29 +++++++++++++++++++++++++++++ src/views/userCenter/index.vue | 16 +++++++++++++++- src/views/userCenter/login.vue | 2 +- 8 files changed, 98 insertions(+), 5 deletions(-) create mode 100644 src/utils/color.js diff --git a/src/App.vue b/src/App.vue index dfb5041b..14e14347 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,8 +5,20 @@ diff --git a/src/config/index.js b/src/config/index.js index 6e2ef523..ab1a30cf 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -29,6 +29,9 @@ const DEFAULT_CONFIG = { //语言 LANG: 'zh-cn', + + //主题颜色 + COLOR: '', //控制台首页默认布局 DEFAULT_GRID: { diff --git a/src/layout/components/setting.vue b/src/layout/components/setting.vue index d160d77c..4eb7e168 100644 --- a/src/layout/components/setting.vue +++ b/src/layout/components/setting.vue @@ -13,6 +13,10 @@ + + > + + @@ -32,6 +36,8 @@