This commit is contained in:
xingyu4j
2025-05-06 14:39:03 +08:00
4 changed files with 37 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ function generateMenus(
// 处理子菜单
const resultChildren = hideChildrenInMenu
? []
: (children as MenuRecordRaw[]);
: ((children as MenuRecordRaw[]) ?? []);
// 设置子菜单的父子关系
if (resultChildren.length > 0) {