diff --git a/src/composables/useTheme.ts b/src/composables/useTheme.ts index e2fc933..1ce775b 100644 --- a/src/composables/useTheme.ts +++ b/src/composables/useTheme.ts @@ -36,7 +36,7 @@ export function useTheme() { theme: computed(() => store.theme), isDark: computed(() => store.isDark), currentThemeColor: computed(() => store.currentThemeColor), - themeVars: computed(() => store.themeVars), + themeVars: store.themeVars, themeColorOptions, diff --git a/src/pages/mine/settings/theme/index.vue b/src/pages/mine/settings/theme/index.vue index 25becf4..3a64127 100644 --- a/src/pages/mine/settings/theme/index.vue +++ b/src/pages/mine/settings/theme/index.vue @@ -147,7 +147,7 @@ const showCustomColorInput = ref(false); // 当前选中的主题色 const currentThemeColor = computed(() => { - return themeVars.value.colorTheme || themeColorOptions[0].primary; + return themeVars.colorTheme || themeColorOptions[0].primary; }); // 选择预设颜色