From faba333c58447cc98bbc88e23c1bf40e4d039e35 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 15 Feb 2022 11:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=85=A5=E5=8F=A3=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../route/index/CustomIndexPageRouteController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }