zhengyiming
昨天 6fc60fcdccd4c99e43be482ecf3757108e833c34
src/store/modules/permission.ts
@@ -33,12 +33,14 @@
          const res = await baseModuleServices.getCurrentUserModuleList({
            showLoading: false,
          });
          const accessedRoutes = ascending(addAsyncRoutes(formatModuleList([], null))); // createAccessedRoutes(userMenuList, userInfo)
          const accessedRoutes = ascending(addAsyncRoutes(formatModuleList(res, null))); // createAccessedRoutes(userMenuList, userInfo)
          //@ts-ignore
          accessedRoutes.push({ path: '/:pathMatch(.*)*', redirect: '/404', hidden: true });
          this.addRoutes = accessedRoutes;
          this.routes = constantRoutes.concat(accessedRoutes);
          this.routes = constantRoutes
            .concat(accessedRoutes)
            .sort((a, b) => (a.meta?.rank ?? 0) - (b.meta?.rank ?? 0));
          resolve(accessedRoutes);
        } catch (e) {