diff --git a/src/mixins/theme.ts b/src/mixins/theme.ts index 50a4387..aea82f0 100644 --- a/src/mixins/theme.ts +++ b/src/mixins/theme.ts @@ -4,16 +4,13 @@ import { useSystemInfoStore } from '@/stores/modules/system'; export const themeMixin = { computed: { __themeModel() { - const themeStore = storeToRefs(useSystemInfoStore()); - return themeStore.getThemeModel.value; + return useSystemInfoStore().getThemeModel; }, __themeKey() { - const themeStore = storeToRefs(useSystemInfoStore()); - return themeStore.getThemeKey.value; + return useSystemInfoStore().getThemeKey; }, __theme() { - const themeStore = storeToRefs(useSystemInfoStore()); - const theme = themeStore.getTheme.value; + const theme = useSystemInfoStore().getTheme; return Object.keys(theme) .map(key => `${key}:${theme[key]};`) .join(''); diff --git a/src/pages/colorCard/Scheme.vue b/src/pages/colorCard/Scheme.vue index 3ac6599..88a7b6b 100644 --- a/src/pages/colorCard/Scheme.vue +++ b/src/pages/colorCard/Scheme.vue @@ -9,7 +9,7 @@ ## Last Modified: 2024-09-05 10:45:49 - Modified By: kurosago + Modified By: KuroSago ## Copyright (c) 2024 self. @@ -34,7 +34,7 @@ defineComponent({ v-for="(v, k) in props.scheme" :key="k" class="flex flex-col items-center justify-center " > - {{ k }} + {{ k }}
- lightScheme + lightScheme