This commit is contained in:
syuilo 2025-06-24 11:44:16 +09:00
parent 0ada970337
commit d518682e73
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ export class PreferencesManager {
this.r[key].value = this.s[key] = v;
}
// TODO: desync対策 cloudの値のfetchが正常に完了していない状態でcommitすると多分値が上書きされる
public commit<K extends keyof PREF>(key: K, value: ValueOf<K>) {
const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除