修复bug

This commit is contained in:
2026-01-30 19:00:31 +08:00
parent fcc976680d
commit 3de5e9ebe9
91 changed files with 4966 additions and 847 deletions

View File

@@ -14,22 +14,19 @@ export type TagItem = {
export type MenuChild = {
id: string
title: string
path: string
// ✅ 目录节点可以没有 path
path?: string | null
// ✅ 允许四级
// ✅ 允许四级MenuChild 下还能继续 children
children?: MenuChild[] | null
}
export type MenuGroup = {
id?: string | null
title: string
// ✅ 允许 group 自己也能当叶子直接跳转(可选)
// ✅ 允许“叶子二级菜单”:group 自己也可以有 path(可选)
path?: string | null
// ✅ children 允许缺省/为空
// ✅ 关键:children 改成可选(否则你现在这种叶子 group 会直接报错)
children?: MenuChild[] | null
}