mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
commit
5b495399b7
@ -99,6 +99,7 @@ export const useSyncStore = createPersistStore(
|
||||
const client = this.getClient();
|
||||
|
||||
//console.log("===== accessStore", accessStore);
|
||||
|
||||
try {
|
||||
const remoteState = await client.get(config.username);
|
||||
if (!remoteState || remoteState === "") {
|
||||
@ -109,7 +110,7 @@ export const useSyncStore = createPersistStore(
|
||||
return;
|
||||
} else {
|
||||
let parsedRemoteState = JSON.parse(await client.get(config.username));
|
||||
parsedRemoteState["access-control"] = accessStore;
|
||||
parsedRemoteState[StoreKey.Access] = accessStore;
|
||||
|
||||
//console.log("parsedRemoteState------", parsedRemoteState);
|
||||
mergeAppState(localState, parsedRemoteState);
|
||||
|
@ -9,7 +9,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "NextChat",
|
||||
"version": "2.12.4"
|
||||
"version": "2.13.0"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
@ -112,4 +112,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user