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
@@ -108,7 +108,8 @@ export default class Setting extends Component {
add(setting) {
this.remove();
this.option.push(setting);
const settingCopy = mergeDeep({}, setting);
this.option.push(settingCopy);
this.option = Setting.makeRecursion(this.option);
this.render(this.option);
return this.option;