fixed:当数据库的就数据不支持新特性时,增加新特性

This commit is contained in:
hrz
2026-05-28 14:41:06 +08:00
parent d03583f493
commit 1e17e5ac8a
@@ -332,6 +332,9 @@ class FeatureManager {
Object.keys(featureUpdates).forEach(featureKey => {
if (features[featureKey]) {
features[featureKey].enabled = featureUpdates[featureKey];
} else if (this.defaultFeatures[featureKey]) {
features[featureKey] = { ...this.defaultFeatures[featureKey] };
features[featureKey].enabled = featureUpdates[featureKey];
}
});
this.saveConfig(features);