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

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

45 lines
1.2 KiB
C++

//----------------------------------------------------------------------------
//
// Copyright (C) Intel Corporation, 2007 - 2008.
//
// File: MPS_Utils.h
//
// Contents: Provides static functions for common use in the MPS
//
// Notes:
//----------------------------------------------------------------------------
#ifndef MPS_UTILS_H
#define MPS_UTILS_H
#include <ace/SString.h>
#define MAX_ELEMENT_NAME_LENGTH 1024
/*
* Converts the given string to its upper case counterpart string, and returns it.
* str - a reference to the string to convert.
*/
ACE_TString toUpper(const ACE_TString &str);
struct ACE_TString_compare {
bool operator() (const ACE_TString &sectionL, const ACE_TString &sectionR) const {
return (toUpper(sectionL).compare(toUpper(sectionR)) < 0);
}
};
struct ACE_TString_compare_no_toUpper {
bool operator() (const ACE_TString &sectionL, const ACE_TString &sectionR) const {
return (sectionL.compare(sectionR) < 0);
}
};
class LogMasks
{
public:
LogMasks() : mask_(0) {}
void setMask(unsigned long mask) { mask_ = mask; }
unsigned long getMask() { return mask_; }
private:
unsigned long mask_;
};
#endif /* MPS_UTILS_H */