mirror of https://gitee.com/answerdev/answer.git
fix(guard.js): Delaying the UserAgent request so that the Language is correctly obtained
This commit is contained in:
parent
944e773392
commit
cec02e8000
|
@ -390,11 +390,8 @@ export const setupApp = async () => {
|
|||
* 1. must pre init logged user info for router guard
|
||||
* 2. must pre init app settings for app render
|
||||
*/
|
||||
await Promise.allSettled([
|
||||
pullLoggedUser(),
|
||||
pullUcAgent(),
|
||||
initAppSettingsStore(),
|
||||
]);
|
||||
await Promise.allSettled([pullLoggedUser(), initAppSettingsStore()]);
|
||||
await Promise.allSettled([pullUcAgent()]);
|
||||
setupAppLanguage();
|
||||
setupAppTimeZone();
|
||||
appInitialized = true;
|
||||
|
|
Loading…
Reference in New Issue