From 3d1bbd53d491565f618c8eb99b9055d27a06a3e3 Mon Sep 17 00:00:00 2001 From: chenzhaolong Date: Thu, 13 Jun 2024 15:49:39 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E9=9D=99?= =?UTF-8?q?=E6=80=81=E8=B7=AF=E7=94=B1=E4=B8=8D=E9=9C=80=E8=A6=81=E5=BC=82?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index d49b756b..8db66a71 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) {