mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
fix: change use-set priority (#2760)
The user settings(locale, appearance) are not in use when restart broswer
This commit is contained in:
parent
a22ad90174
commit
cd3a98c095
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ export const initialGlobalState = async () => {
|
|||
},
|
||||
};
|
||||
defaultGlobalState.locale =
|
||||
defaultGlobalState.locale || defaultGlobalState.systemStatus.customizedProfile.locale || findNearestLanguageMatch(i18n.language);
|
||||
defaultGlobalState.appearance = defaultGlobalState.appearance || defaultGlobalState.systemStatus.customizedProfile.appearance;
|
||||
defaultGlobalState.systemStatus.customizedProfile.locale || defaultGlobalState.locale || findNearestLanguageMatch(i18n.language);
|
||||
defaultGlobalState.appearance = defaultGlobalState.systemStatus.customizedProfile.appearance || defaultGlobalState.appearance;
|
||||
}
|
||||
store.dispatch(setGlobalState(defaultGlobalState));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue