🐛 Fixed theme invalidation issue

This commit is contained in:
2026-01-01 00:02:34 +08:00
parent ec8f8c1e2d
commit 9ec22add55
6 changed files with 50 additions and 66 deletions

View File

@@ -133,16 +133,13 @@ const updateLocalColor = (colorKey: string, value: string) => {
const applyChanges = async () => {
try {
if (!tempColors.value) return;
// 更新 store 中的颜色
themeStore.updateCurrentColors(tempColors.value);
// 保存到数据库
await themeStore.saveCurrentTheme();
// 刷新编辑器主题
themeStore.refreshEditorTheme();
// 清除未保存标记
hasUnsavedChanges.value = false;
} catch (error) {