소스 검색

chore: update

xiaoxian521 2 년 전
부모
커밋
2bbf04b191
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/router/utils.ts

+ 1 - 0
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) => {