fix(guard.js): Delaying the UserAgent request so that the Language is correctly obtained

This commit is contained in:
haitaoo 2023-04-20 18:02:10 +08:00
parent 944e773392
commit cec02e8000
1 changed files with 2 additions and 5 deletions

View File

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