From 5a4a0e7987a0748f139945d80edcc7dd9859edca Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 17 四月 2020 15:17:32 +0800 Subject: [PATCH] 用户名称不能修改 --- ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java index cfb85d0..31eb70b 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java +++ b/ruoyi/src/main/java/com/ruoyi/project/system/service/impl/SysMenuServiceImpl.java @@ -139,6 +139,7 @@ for (SysMenu menu : menus) { RouterVo router = new RouterVo(); + router.setHidden("1".equals(menu.getVisible())); router.setName(StringUtils.capitalize(menu.getPath())); router.setPath(getRouterPath(menu)); router.setComponent(StringUtils.isEmpty(menu.getComponent()) ? "Layout" : menu.getComponent()); -- Gitblit v1.9.3