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

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

69 lines
2.2 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright © 2009-2012, Intel Corporation. All rights reserved.
//
// File: CertWarning.cs
//
//----------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
namespace UCT.Forms
{
/// <summary>
/// Warning form - displayed when there is an issue with the certificate.
/// Ask the user - if he wants to continue even if there is a security issue.
/// </summary>
public partial class CertWarning : Form
{
#region - Constructors -
public CertWarning(string description)
{
InitializeComponent();
lblProblemDescription.Text = description;
}
#endregion
#region - Methods -
private void lbContinue_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
private void lbCloseConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.DialogResult = DialogResult.Yes;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (Configuration.CertificateSettings.GetInstance().PersonalCertificate != string.Empty)
{
linkViewCert.Visible = true;
}
}
private void linkViewCert_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
X509Certificate2UI.DisplayCertificate(Configuration.CertificateSettings.GetInstance().ServerCertificate, this.Handle);
}
catch(Exception ex)
{
LogManager.WriteOperation(LogLevel.BASIC, string.Format(Properties.Resources.OPERATION_FAILED, "Display Certificate"), LogInteraction.Error);
AMT_SW_GUI.MessageManager.ShowErrorMessage(ex.Message, "Failed to display certificate", this);
}
}
#endregion
}
}