fix: 修复request请求自定义headers类型错误

This commit is contained in:
kailong321200875
2023-12-19 09:04:07 +08:00
parent 649fb17d00
commit bf2cd720d0
2 changed files with 4 additions and 4 deletions

4
types/global.d.ts vendored
View File

@@ -1,5 +1,5 @@
import type { CSSProperties } from 'vue'
import { AxiosRequestHeaders } from 'axios'
import { RawAxiosRequestHeaders } from 'axios'
declare global {
declare interface Fn<T = any> {
(...arg: T[]): T
@@ -40,7 +40,7 @@ declare global {
data?: any
url?: string
method?: AxiosMethod
headers?: AxiosRequestHeaders
headers?: RawAxiosRequestHeaders
responseType?: AxiosResponseType
}