lvfengfree b92e1119ae fix: 修复菜单为空问题 - 移除后端过滤home路由的错误逻辑
- 修复RouteService中错误过滤home路由的问题
- 后端现在正确返回所有用户有权限的路由
- 添加设备管理相关功能(列表、在线监控、电源管理、远程监控)
- 添加详细的修复文档和重启脚本
- 更新权限配置脚本

问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单
解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
2026-03-01 09:50:19 +08:00

57 lines
1.6 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2008 - 2009 All Rights Reserved.
//
// File: CimFieldAttribute.cs
//
// Contents: CimFieldAttribute is a part of the CimFramework project.
// It contains the implementation of a Cim attribute class.
//
//----------------------------------------------------------------------------
using System;
namespace Intel.Manageability.Cim.Typed
{
/// <summary>
/// A class that represents the attributes of a CIM field
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class CimFieldAttribute : Attribute
{
private bool isKey;
private bool isRequired;
/// <summary>
/// Constructor
/// </summary>
/// <param name="IsKey">Specifies if the attribute is a key</param>
/// <param name="IsRequired">Specifies if the attribute is required</param>
public CimFieldAttribute(bool IsKey, bool IsRequired)
{
this.isKey = IsKey;
if (IsKey)
this.isRequired = true;
else
this.isRequired = IsRequired;
}
/// <summary>
/// True if the attribute is a key, false otherwise
/// </summary>
public bool IsKey
{
get { return isKey; }
}
/// <summary>
/// True if the attribute is required, false otherwise
/// </summary>
public bool IsRequired
{
get { return isRequired; }
}
}
}