Optimize tools route. Optimize multiple menu stylesheet.

This commit is contained in:
2023-10-12 01:51:56 +08:00
parent 41b0cb6d3e
commit bc82572fa8
6 changed files with 196 additions and 100 deletions

11
src/global.d.ts vendored
View File

@@ -10,6 +10,17 @@ interface ImportMeta {
readonly env: ImportMetaEnv
}
type ToolsJsonObject = {
path: string
id: string
component?: React.ComponentType
name?: string
icon?: IconComponent
menu?: boolean
auth?: boolean
children?: ToolsJsonObject[]
}
type RouteHandle = {
name?: string
menu?: boolean