mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-18 15:03:43 +08:00
debug:mergeAppState list key
This commit is contained in:
@@ -137,9 +137,12 @@ export function setLocalAppState(appState: AppState) {
|
||||
export function mergeAppState(localState: AppState, remoteState: AppState) {
|
||||
Object.keys(localState).forEach(<T extends keyof AppState>(k: string) => {
|
||||
const key = k as T;
|
||||
const localStoreState = localState[key];
|
||||
const remoteStoreState = remoteState[key];
|
||||
MergeStates[key](localStoreState, remoteStoreState);
|
||||
//if(k !== ''){
|
||||
console.log('mergeAppState',k)
|
||||
const localStoreState = localState[key];
|
||||
const remoteStoreState = remoteState[key];
|
||||
MergeStates[key](localStoreState, remoteStoreState);
|
||||
//}
|
||||
});
|
||||
|
||||
return localState;
|
||||
|
||||
Reference in New Issue
Block a user