完善页面
This commit is contained in:
@@ -14,15 +14,26 @@ export type TagItem = {
|
||||
export type MenuChild = {
|
||||
id: string
|
||||
title: string
|
||||
path: string
|
||||
|
||||
// ✅ 目录节点可以没有 path
|
||||
path?: string | null
|
||||
|
||||
// ✅ 允许四级
|
||||
children?: MenuChild[] | null
|
||||
}
|
||||
|
||||
export type MenuGroup = {
|
||||
id?:string
|
||||
id?: string | null
|
||||
title: string
|
||||
children: MenuChild[]
|
||||
|
||||
// ✅ 允许 group 自己也能当叶子直接跳转(可选)
|
||||
path?: string | null
|
||||
|
||||
// ✅ children 允许缺省/为空
|
||||
children?: MenuChild[] | null
|
||||
}
|
||||
|
||||
|
||||
export type MenuItem = {
|
||||
id: string
|
||||
title: string
|
||||
|
||||
Reference in New Issue
Block a user