瀏覽代碼

this is ti

ruban 1 年之前
父節點
當前提交
9d728ec3c5
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/store/sync.ts

+ 3 - 0
app/store/sync.ts

@@ -95,6 +95,9 @@ export const useSyncStore = createPersistStore(
       const provider = get().provider;
       const config = get()[provider];
       const client = this.getClient();
+
+      console.log("client set", localState);
+      await client.set(config.username, JSON.stringify(localState));
     
       try {
         const remoteState = await client.get(config.username);