diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index a3f2569..beb7443 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -176,6 +176,11 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { /** Init auth route */ async function initAuthRoute() { + // check if user info is initialized + if (!authStore.userInfo.userId) { + await authStore.initUserInfo(); + } + if (authRouteMode.value === 'static') { initStaticAuthRoute(); } else {