From 15c2bbfe89b5e2ad3a31ea1028b2686f92c7f7ba Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Mon, 9 Mar 2026 08:15:12 +0800 Subject: [PATCH] fix: update themeVars access in useTheme composable and theme settings page --- src/composables/useTheme.ts | 2 +- src/pages/mine/settings/theme/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }); // 选择预设颜色