Browse Source
perf: set header can use For Qs (#562)
set header can use For Qs
pull/567/head
Yirius
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/utils/http/axios/Axios.ts
|
|
|
@ -155,7 +155,7 @@ export class VAxios { |
|
|
|
|
|
|
|
// support form-data
|
|
|
|
supportFormData(config: AxiosRequestConfig) { |
|
|
|
const headers = config.headers; |
|
|
|
const headers = config.headers || this.options.headers; |
|
|
|
const contentType = headers?.['Content-Type'] || headers?.['content-type']; |
|
|
|
|
|
|
|
if ( |
|
|
|
|