♻️ Refactor code

This commit is contained in:
landaiqing committed 2025-06-19 01:05:08 +08:00
1 parent 9204315c7b
commit 3c880199ae
41 files changed
+932 -2889

No files matched your search

-2
View File
@@ -126,7 +126,6 @@ func setDefaults(v *viper.Viper) {
// 外观设置默认值
v.SetDefault("appearance.language", defaultConfig.Appearance.Language)
v.SetDefault("appearance.theme", defaultConfig.Appearance.Theme)
v.SetDefault("appearance.system_theme", defaultConfig.Appearance.SystemTheme)
// 元数据默认值
@@ -262,7 +261,6 @@ func (cs *ConfigService) ResetConfig() {
// 外观设置 - 批量设置到viper中
cs.viper.Set("appearance.language", defaultConfig.Appearance.Language)
cs.viper.Set("appearance.theme", defaultConfig.Appearance.Theme)
cs.viper.Set("appearance.system_theme", defaultConfig.Appearance.SystemTheme)
// 元数据 - 批量设置到viper中