Add menu in ToolsFramework

This commit is contained in:
2023-10-11 18:29:23 +08:00
parent e67f9d14bf
commit 9d04773266
5 changed files with 221 additions and 1 deletions

48
src/global.d.ts vendored Normal file
View File

@@ -0,0 +1,48 @@
/// <reference types="vite/client" />
/// <reference types="./ant-design" />
interface ImportMetaEnv {
readonly VITE_API_URL: string
readonly VITE_API_TOKEN_URL: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
type RouteHandle = {
name?: string
menu?: boolean
auth?: boolean
titlePrefix?: string
title?: string
titlePostfix?: string
icon?: IconComponent
}
type _Response<T> = {
code: number
success: boolean
msg: string
data: T | null
}
type Captcha = {
value: string
base64Src: string
}
type Token = {
token: string
}
type User = {
id: number
username: string
enable: number
}
type LoginForm = {
username: string
password: string
}