修复bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user