修复刷新页面后,数据已加载,但没有显示到设置页面的问题

This commit is contained in:
浔阳陌客 2024-04-24 14:46:41 +08:00
parent 8f27804c83
commit 587d5f2112

View file

@ -51,6 +51,8 @@ export class SettingUtils {
if (data) {
for (let [key, item] of this.settings) {
item.value = data?.[key] ?? item.value;
this.updateElementFromValue(key);
}
}
this.plugin.data[this.name] = this.dump();