refactor: refactor useAxios

This commit is contained in:
陈凯龙
2022-04-19 10:51:47 +08:00
parent dfedbc74fd
commit 185f1e6e21
6 changed files with 72 additions and 67 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<T = Recordable, K = Recordable> = {
params?: T
data?: K
declare type AxiosConfig = {
params?: any
data?: any
url?: string
method?: AxiosMethod
headersType?: string