From 44b0f151a37b4d7d18ad11e911dcf388e03f9e7b Mon Sep 17 00:00:00 2001 From: SuperCuteXiaoSi <1531733886@qq.com> Date: Tue, 25 Oct 2022 21:28:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(layouts):=20=E2=9C=A8=20[App]=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=B7=BB=E5=8A=A0=E8=89=B2=E5=BC=B1=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E3=80=81=E7=81=B0=E8=89=B2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/serverConfig.json | 4 +- src/App.vue | 8 --- src/components/Application/AppAccount.vue | 2 +- src/components/Application/AppLocale.vue | 2 +- src/components/Application/AppTheme.vue | 26 ++++++-- src/config/index.ts | 2 - src/hooks/useTransformTheme.ts | 59 ++++++++++++++++++- .../pageLayouts/components/Navbart/index.vue | 2 +- .../components/Seting/ThemeSettings/index.vue | 38 ++++++++---- .../pageLayouts/components/Seting/index.vue | 8 ++- src/locales/en/modules/layout.ts | 5 +- src/locales/zh-ch/modules/layout.ts | 5 +- src/store/types.ts | 2 + src/styles/index.scss | 9 +++ src/utils/plugin/element.ts | 2 + src/utils/transformTheme.ts | 41 ------------- 16 files changed, 140 insertions(+), 75 deletions(-) delete mode 100644 src/utils/transformTheme.ts diff --git a/public/serverConfig.json b/public/serverConfig.json index 9cdb7d3e..b90b2563 100644 --- a/public/serverConfig.json +++ b/public/serverConfig.json @@ -2,9 +2,11 @@ "title":"xiaosiAdmin", "collapseMenu": false, "sidebarMode": "vertical", - "themeMode": "day", + "themeMode": "dark", "locale": "zh-ch", "primaryColor": "#409eff", + "greyMode": false, + "colorWeaknessMode":false, "StorageConfig":{ "type": "localStorage", "prefix": "xiaosiAdmin", diff --git a/src/App.vue b/src/App.vue index f81dbbd1..15f05bc4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,15 +1,7 @@