Explorar o código

chore: update

xiaoxian521 %!s(int64=2) %!d(string=hai) anos
pai
achega
2bbf04b191
Modificáronse 1 ficheiros con 1 adicións e 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) => {