瀏覽代碼

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