Skip to content

Commit

Permalink
fix: routes filter can't effective when permission mode set to ROUTE_…
Browse files Browse the repository at this point in the history
…MAPPING (#836)
  • Loading branch information
visualhu committed Jun 30, 2021
1 parent b4a3f93 commit 3871204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const usePermissionStore = defineStore({
case PermissionModeEnum.ROUTE_MAPPING:
routes = filter(asyncRoutes, routeFilter);
routes = routes.filter(routeFilter);
const menuList = transformRouteToMenu(asyncRoutes, true);
const menuList = transformRouteToMenu(routes, true);
menuList.sort((a, b) => {
return (a.meta?.orderNo || 0) - (b.meta?.orderNo || 0);
});
Expand Down

0 comments on commit 3871204

Please sign in to comment.