This commit is contained in:
仲么了
2024-02-19 13:44:32 +08:00
commit 361cbb713d
238 changed files with 202544 additions and 0 deletions

38
types/global.d.ts vendored Normal file
View File

@@ -0,0 +1,38 @@
interface Window {
XEUtils: Record<string, any>
existLoading: boolean
lazy: number
unique: number
tokenRefreshing: boolean
requests: Function[]
eventSource: EventSource
loadLangHandle: Record<string, any>
}
interface anyObj {
[key: string]: any
}
interface treeData {
id?: string
value?: string
name?: string
label?: string
children: treeData[]
[key: string]: any
}
interface TableDefaultData<T = any> {
list: T
remark: string
total: number
}
interface ApiResponse<T = any> {
code: number
data: T
msg: string
time: number
}
type ApiPromise<T = any> = Promise<ApiResponse<T>>