diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index d49b756ba..a65a026a2 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -219,7 +219,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { /** Init auth route */ async function initAuthRoute() { if (authRouteMode.value === 'static') { - await initStaticAuthRoute(); + initStaticAuthRoute(); } else { await initDynamicAuthRoute(); } @@ -228,7 +228,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { } /** Init static auth route */ - async function initStaticAuthRoute() { + function initStaticAuthRoute() { const { authRoutes: staticAuthRoutes } = createStaticRoutes(); if (authStore.isStaticSuper) {