debug:mergeAppState list key

This commit is contained in:
cbm
2024-07-13 16:56:28 +08:00
parent bf5546b112
commit e5edfd97a5
2 changed files with 9 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ export const useSyncStore = createPersistStore(
const config = get()[provider];
const client = this.getClient();
await client.set(config.username, JSON.stringify(localState));
try {
const remoteState = await client.get(config.username);
@@ -116,6 +116,8 @@ export const useSyncStore = createPersistStore(
throw e;
}
await client.set(config.username, JSON.stringify(localState));
this.markSyncTime();