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) => {