fixed:当数据库的就数据不支持新特性时,增加新特性
This commit is contained in:
1 parent
d03583f493
commit
1e17e5ac8a
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user