From f015fc2ff0642703ae92021643a22760bce12231 Mon Sep 17 00:00:00 2001 From: lijiahong <1471363285@qq.com> Date: Sat, 22 Feb 2025 20:58:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98swit?= =?UTF-8?q?ch=E7=8A=B6=E6=80=81=E4=B8=8D=E7=BB=9F=E4=B8=80=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Setting/src/Setting.vue | 10 ++------- .../ThemeSwitch/src/ThemeSwitch.vue | 22 ++++++++++++------- src/views/Login/Login.vue | 10 ++------- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/components/Setting/src/Setting.vue b/src/components/Setting/src/Setting.vue index eb81afa..ecbe72d 100644 --- a/src/components/Setting/src/Setting.vue +++ b/src/components/Setting/src/Setting.vue @@ -5,7 +5,7 @@ import { useI18n } from '@/hooks/web/useI18n' import { ThemeSwitch } from '@/components/ThemeSwitch' import { useCssVar } from '@vueuse/core' import { useAppStore } from '@/store/modules/app' -import { trim, setCssVar, getCssVar } from '@/utils' +import { trim, setCssVar } from '@/utils' import ColorRadioPicker from './components/ColorRadioPicker.vue' import InterfaceDisplay from './components/InterfaceDisplay.vue' import LayoutRadioPicker from './components/LayoutRadioPicker.vue' @@ -147,12 +147,6 @@ const clear = () => { storageClear() window.location.reload() } - -const themeChange = () => { - const color = getCssVar('--el-bg-color') - setMenuTheme(color) - setHeaderTheme(color) -}