mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
feat: 快捷设置自动更新
This commit is contained in:
parent
d0e73ff00c
commit
108cc5399b
6 changed files with 74 additions and 85 deletions
|
|
@ -176,7 +176,11 @@ class Setting {
|
|||
// 先获取默认配置
|
||||
const defSet = this.getdefSet(app);
|
||||
const config = this.getConfig(app);
|
||||
config[key] = value;
|
||||
if (value instanceof Object) {
|
||||
config[key] = { ...config[key], ...value };
|
||||
} else {
|
||||
config[key] = value;
|
||||
}
|
||||
return this.setYaml(app, 'config', { ...defSet, ...config });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue