mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 10:57:10 +08:00 
			
		
		
		
	完善:完善菜单相关代码逻辑,优化部分细节
This commit is contained in:
		@@ -47,4 +47,22 @@ public class MetaVO implements Serializable {
 | 
			
		||||
     */
 | 
			
		||||
    @Schema(description = "菜单图标")
 | 
			
		||||
    private String icon;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 是否隐藏
 | 
			
		||||
     */
 | 
			
		||||
    @Schema(description = "是否隐藏")
 | 
			
		||||
    private Boolean hideInMenu;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 是否缓存
 | 
			
		||||
     */
 | 
			
		||||
    @Schema(description = "是否缓存")
 | 
			
		||||
    private Boolean ignoreCache;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 是否需要登录才能访问
 | 
			
		||||
     */
 | 
			
		||||
    @Schema(description = "是否需要登录才能访问")
 | 
			
		||||
    private Boolean requiresAuth = true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -121,6 +121,8 @@ public class LoginServiceImpl implements LoginService {
 | 
			
		||||
            MetaVO metaVO = new MetaVO();
 | 
			
		||||
            metaVO.setLocale(m.getTitle());
 | 
			
		||||
            metaVO.setIcon(m.getIcon());
 | 
			
		||||
            metaVO.setIgnoreCache(!m.getIsCache());
 | 
			
		||||
            metaVO.setHideInMenu(m.getIsHidden());
 | 
			
		||||
            tree.putExtra("meta", metaVO);
 | 
			
		||||
        });
 | 
			
		||||
        return BeanUtil.copyToList(treeList, RouteVO.class);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user