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) -}