Skip to content

Commit

Permalink
perf(project): Initializing the static routing function does not requ…
Browse files Browse the repository at this point in the history
…ire asynchronization (#493)
  • Loading branch information
AzronChan committed Jun 14, 2024
1 parent 376e2f7 commit 2198b98
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 2198b98

Please sign in to comment.