feat(router): Add dynamic routing

This commit is contained in:
陈凯龙
2022-01-11 10:47:10 +08:00
parent 95a2bd884d
commit b218ccc9cc
15 changed files with 478 additions and 323 deletions

6
types/global.d.ts vendored
View File

@@ -25,9 +25,9 @@ declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put'
declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
declare type AxiosConfig = {
params?: Recordable
data?: Recordable
declare type AxiosConfig<T = Recordable, K = Recordable> = {
params?: T
data?: K
url?: string
method?: AxiosMethod
headersType?: string