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