Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
chore: 清除注释代码
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Dec 27, 2023
1 parent 048e1bf commit fb915d2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/admin/src/store/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,16 @@ export const useAuthStore = defineStore('app-auth-store', {
routes = filterRouterTree(r, routeFilter, false)
switch (permissionMode) {
case PermissionModeEnum.ROLE:
// routes = filterTree(r, routeFilter)
// routes = routes.filter(routeFilter)
// Convert multi-level routing to level 2 routing
// routes = flatMultiLevelRoutes(routes)
break
case PermissionModeEnum.ROUTE_MAPPING:
// routes = filterTree(r, routeFilter)
// routes = routes.filter(routeFilter)
const menuList = transformRouteToMenu(routes, true)
// routes = filterTree(routes, routeRemoveIgnoreFilter)
// routes = routes.filter(routeRemoveIgnoreFilter)
routes = filterRouterTree(routes, routeRemoveIgnoreFilter)
menuList.sort((a, b) => {
return (a.meta?.orderNo || 0) - (b.meta?.orderNo || 0)
})

this.setFrontMenuList(menuList as Menu[])

// Convert multi-level routing to level 2 routing
// routes = flatMultiLevelRoutes(routes)
break

// If you are sure that you do not need to do background dynamic permissions, please comment the entire judgment below
Expand Down

0 comments on commit fb915d2

Please sign in to comment.