Skip to content

Commit

Permalink
optimize(projects): Initializing the static routing function does not…
Browse files Browse the repository at this point in the history
… require asynchronization
  • Loading branch information
honghuangdc committed Jun 14, 2024
1 parent 7a414f5 commit 02d66cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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) {
Expand Down

0 comments on commit 02d66cb

Please sign in to comment.