Menu permission control

This commit is contained in:
2023-11-01 11:42:31 +08:00
parent 9b6ab39ea1
commit aa295db6ae
4 changed files with 30 additions and 14 deletions

10
src/global.d.ts vendored
View File

@@ -16,6 +16,7 @@ type RouteJsonObject = {
id?: string
element?: React.JSX.Element
component?: React.ComponentType
children?: RouteJsonObject[]
name?: string
titlePrefix?: string
title?: string
@@ -23,18 +24,21 @@ type RouteJsonObject = {
icon?: IconComponent
menu?: boolean
auth?: boolean
children?: RouteJsonObject[]
permission?: boolean
autoHide?: boolean
}
type RouteHandle = {
absolutePath: string
name?: string
menu?: boolean
auth?: boolean
titlePrefix?: string
title?: string
titlePostfix?: string
icon?: IconComponent
menu?: boolean
auth?: boolean
permission?: boolean
autoHide?: boolean
}
type _Response<T> = {