fix: update themeVars access in useTheme composable and theme settings page

This commit is contained in:
Ray.Hao
2026-03-09 08:15:12 +08:00
parent b881b79384
commit 15c2bbfe89
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -147,7 +147,7 @@ const showCustomColorInput = ref(false);
// 当前选中的主题色
const currentThemeColor = computed(() => {
return themeVars.value.colorTheme || themeColorOptions[0].primary;
return themeVars.colorTheme || themeColorOptions[0].primary;
});
// 选择预设颜色