refactor: 提取 ProviderThemeVars 类型并移除冗余变量

This commit is contained in:
Mickey wu
2026-05-25 21:30:26 +08:00
parent 410979a707
commit 2a14a16b5a
3 changed files with 10 additions and 6 deletions

View File

@@ -101,7 +101,7 @@
});
// 使用主题组合函数
const { isDark, themeVars, themeColorOptions, toggleTheme, setThemeColor } = useTheme();
const { isDark, themeColorOptions, toggleTheme, setThemeColor } = useTheme();
const toast = useToast();
const { confirm } = useDialog();
@@ -115,7 +115,7 @@
// 当前选中的主题色
const currentThemeColor = computed(() => {
return themeVars.colorTheme || themeColorOptions[0].primary;
return themeColorOptions[0].primary;
});
// 选择预设颜色