diff --git a/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java b/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java index 602ec4e..6723d90 100644 --- a/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java +++ b/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java @@ -59,7 +59,7 @@ public class CustomIndexPageRouteController { List roleIds = securityComponent.listRoleIds(); if (securityComponent.isAdmin(roleIds)) { List oAuth2ClientSimpleDTOs = oauth2ClientService.listSimple(); - oAuth2ClientSimpleDTOs.add(getUserCenter()); + oAuth2ClientSimpleDTOs.add(0, getUserCenter()); return oAuth2ClientSimpleDTOs; } // 自己角色的菜单 @@ -78,7 +78,7 @@ public class CustomIndexPageRouteController { } List oAuth2ClientSimpleDTOs = oauth2ClientService.listSimpleByMenuIdsAndEnvironment(rootMenuIds, IOAuth2ClientService.OAUTH_CLIENT_ENVIRONMENT_FORMAL); if (hasUserCenter(rootMenuIds)) { - oAuth2ClientSimpleDTOs.add(getUserCenter()); + oAuth2ClientSimpleDTOs.add(0, getUserCenter()); } return oAuth2ClientSimpleDTOs; }