update setting

This commit is contained in:
Harvey Zack committed 2023-04-23 00:24:05 +08:00
1 parent 37d2ae1d01
commit c8c08137c4
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -4643,7 +4643,8 @@ class Setting extends (0, _componentDefault.default) {
}
add(setting) {
this.remove();
this.option.push(setting);
const settingCopy = (0, _utils.mergeDeep)({}, setting);
this.option.push(settingCopy);
this.option = Setting.makeRecursion(this.option);
this.render(this.option);
return this.option;