Merge pull request #2 from cbmland/cloudflare-dev

Cloudflare dev
This commit is contained in:
cbmland 2024-07-14 13:08:51 +08:00 committed by GitHub
commit 5b495399b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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 @@
} }
] ]
} }
} }