From 2bbf04b191fa1e91ab9a82a9d5957206bdddf265 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 25 Oct 2022 17:36:35 +0800 Subject: [PATCH] chore: update --- src/router/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/utils.ts b/src/router/utils.ts index 989d0efad..9889b0ca4 100644 --- a/src/router/utils.ts +++ b/src/router/utils.ts @@ -157,6 +157,7 @@ function initRouter() { getAsyncRoutes().then(({ data }) => { if (data.length === 0) { usePermissionStoreHook().handleWholeMenus(data); + resolve(router); } else { formatFlatteningRoutes(addAsyncRoutes(data)).map( (v: RouteRecordRaw) => {