Explorar el Código

chore: update

xiaoxian521 hace 2 años
padre
commit
2bbf04b191
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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) => {