Commit 5724bc5b3b960f7c0686c8e60c2b682b16841e6f
Committed by
GitHub
1 parent
bf365e26
perf: set header can use For Qs (#562)
set header can use For Qs
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/http/axios/Axios.ts
... | ... | @@ -155,7 +155,7 @@ export class VAxios { |
155 | 155 | |
156 | 156 | // support form-data |
157 | 157 | supportFormData(config: AxiosRequestConfig) { |
158 | - const headers = config.headers; | |
158 | + const headers = config.headers || this.options.headers; | |
159 | 159 | const contentType = headers?.['Content-Type'] || headers?.['content-type']; |
160 | 160 | |
161 | 161 | if ( | ... | ... |