diff --git a/src/App.vue b/src/App.vue index 840ff90..274b11b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,6 @@ import { computed } from 'vue' import { useAppStore } from '@/store/modules/app' import { ConfigGlobal } from '@/components/ConfigGlobal' import { useDesign } from '@/hooks/web/useDesign' -import { useDark } from '@vueuse/core' import { ElNotification } from 'element-plus' const { getPrefixCls } = useDesign() @@ -16,12 +15,8 @@ const currentSize = computed(() => appStore.getCurrentSize) const greyMode = computed(() => appStore.getGreyMode) -const isDark = useDark({ - valueDark: 'dark', - valueLight: 'light' -}) +appStore.initTheme() -isDark.value = appStore.getIsDark ElNotification({ title: '提示', type: 'warning', diff --git a/src/components/Setting/src/Setting.vue b/src/components/Setting/src/Setting.vue index 8bf2da6..e2077a4 100644 --- a/src/components/Setting/src/Setting.vue +++ b/src/components/Setting/src/Setting.vue @@ -1,6 +1,6 @@