Add menu in ToolsFramework
This commit is contained in:
48
src/global.d.ts
vendored
Normal file
48
src/global.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user