修复刷新页面后,数据已加载,但没有显示到设置页面的问题
This commit is contained in:
parent
8f27804c83
commit
587d5f2112
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ export class SettingUtils {
|
||||||
if (data) {
|
if (data) {
|
||||||
for (let [key, item] of this.settings) {
|
for (let [key, item] of this.settings) {
|
||||||
item.value = data?.[key] ?? item.value;
|
item.value = data?.[key] ?? item.value;
|
||||||
|
this.updateElementFromValue(key);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.plugin.data[this.name] = this.dump();
|
this.plugin.data[this.name] = this.dump();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue