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

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

79 lines
1.9 KiB
Bash

#!/bin/sh
#
# Installation of the C header files in the OS/400 library.
#
# See Copyright for the status of this software.
#
# Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
#
SCRIPTDIR=`dirname "${0}"`
. "${SCRIPTDIR}/initscript.sh"
cd "${TOPDIR}/include"
# Create the OS/400 source program file for the C header files.
SRCPF="${LIBIFSNAME}/LIBXML.FILE"
if action_needed "${SRCPF}"
then CMD="CRTSRCPF FILE(${TARGETLIB}/LIBXML) RCDLEN(112)"
CMD="${CMD} CCSID(${TGTCCSID}) TEXT('libxml2: C/C++ header files')"
system "${CMD}"
fi
# Create the IFS directory for the C header files.
if action_needed "${IFSDIR}/include/libxml"
then mkdir -p "${IFSDIR}/include/libxml"
fi
# Enumeration values may be used as va_arg tagfields, so they MUST be
# integers.
copy_hfile()
{
sed -e '1i\
#pragma enum(int)\
' "${@}" -e '$a\
#pragma enum(pop)\
'
}
# Copy the header files to DB2 library. Link from IFS include directory.
for HFILE in "${TOPDIR}/os400/transcode.h" libxml/*.h libxml/*.h.in
do CMD="cat \"${HFILE}\""
DEST="${SRCPF}/`db2_name \"${HFILE}\" nomangle`.MBR"
case "`basename \"${HFILE}\"`" in
*.in) CMD="${CMD} | versioned_copy";;
xmlschemastypes.h) # Special case: rename colliding file.
DEST="${SRCPF}/SCHMTYPES.MBR";;
esac
if action_needed "${DEST}" "${HFILE}"
then eval "${CMD}" | copy_hfile > tmphdrfile
# Need to translate to target CCSID.
CMD="CPY OBJ('`pwd`/tmphdrfile') TOOBJ('${DEST}')"
CMD="${CMD} TOCCSID(${TGTCCSID}) DTAFMT(*TEXT) REPLACE(*YES)"
system "${CMD}"
fi
IFSFILE="${IFSDIR}/include/libxml/`basename \"${HFILE}\" .in`"
if action_needed "${IFSFILE}" "${DEST}"
then rm -f "${IFSFILE}"
ln -s "${DEST}" "${IFSFILE}"
fi
done