Skip to content

Commit 2198b98

Browse files
authored
perf(project): Initializing the static routing function does not require asynchronization (#493)
1 parent 376e2f7 commit 2198b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/modules/route/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
219219
/** Init auth route */
220220
async function initAuthRoute() {
221221
if (authRouteMode.value === 'static') {
222-
await initStaticAuthRoute();
222+
initStaticAuthRoute();
223223
} else {
224224
await initDynamicAuthRoute();
225225
}
@@ -228,7 +228,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
228228
}
229229

230230
/** Init static auth route */
231-
async function initStaticAuthRoute() {
231+
function initStaticAuthRoute() {
232232
const { authRoutes: staticAuthRoutes } = createStaticRoutes();
233233

234234
if (authStore.isStaticSuper) {

0 commit comments

Comments
 (0)