mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
fixed:recovery disable
This commit is contained in:
@@ -105,7 +105,7 @@ export const useAppConfig = createPersistStore(
|
||||
{ ...DEFAULT_CONFIG },
|
||||
(set, get) => ({
|
||||
reset() {
|
||||
//set(() => ({ ...DEFAULT_CONFIG }));
|
||||
set(() => ({ ...DEFAULT_CONFIG }));
|
||||
},
|
||||
|
||||
mergeModels(newModels: LLMModel[]) {
|
||||
|
||||
@@ -98,7 +98,7 @@ export const useSyncStore = createPersistStore(
|
||||
const config = get()[provider];
|
||||
const client = this.getClient();
|
||||
|
||||
console.log("===== accessStore", accessStore);
|
||||
//console.log("===== accessStore", accessStore);
|
||||
|
||||
try {
|
||||
const remoteState = await client.get(config.username);
|
||||
@@ -111,7 +111,7 @@ export const useSyncStore = createPersistStore(
|
||||
} else {
|
||||
let parsedRemoteState = JSON.parse(await client.get(config.username));
|
||||
parsedRemoteState["access-control"] = accessStore;
|
||||
console.log("parsedRemoteState------", parsedRemoteState);
|
||||
//console.log("parsedRemoteState------", parsedRemoteState);
|
||||
mergeAppState(localState, parsedRemoteState);
|
||||
setLocalAppState(localState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user