diff --git a/src/main/java/com/zcloud/controller/system/MainController.java b/src/main/java/com/zcloud/controller/system/MainController.java
index a6803ba..6a21d64 100644
--- a/src/main/java/com/zcloud/controller/system/MainController.java
+++ b/src/main/java/com/zcloud/controller/system/MainController.java
@@ -4,6 +4,7 @@ import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.PageData;
import com.zcloud.entity.system.Menu;
import com.zcloud.entity.system.Role;
+import com.zcloud.entity.system.Route;
import com.zcloud.entity.system.User;
import com.zcloud.logs.LogAnno;
import com.zcloud.service.system.*;
@@ -35,6 +36,8 @@ public class MainController extends BaseController {
@Autowired
private MenuService menuService;
@Autowired
+ private RouteService routeService;
+ @Autowired
private ButtonrightsService buttonrightsService;
@Autowired
private FhButtonService fhButtonService;
@@ -68,15 +71,29 @@ public class MainController extends BaseController {
session.setAttribute(USERNAME + Const.SESSION_ROLE_RIGHTS, roleRights); //将角色权限存入session
session.setAttribute(Const.SESSION_USERNAME, USERNAME); //放入用户名到session
session.setAttribute(Const.SESSION_U_NAME, user.getNAME()); //放入用户姓名到session
- List