Skip to content

Commit 5724bc5

Browse files
authored
perf: set header can use For Qs (#562)
set header can use For Qs
1 parent bf365e2 commit 5724bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/http/axios/Axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class VAxios {
155155

156156
// support form-data
157157
supportFormData(config: AxiosRequestConfig) {
158-
const headers = config.headers;
158+
const headers = config.headers || this.options.headers;
159159
const contentType = headers?.['Content-Type'] || headers?.['content-type'];
160160

161161
if (

0 commit comments

Comments
 (0)