Unverified Commit 5724bc5b authored by Yirius's avatar Yirius Committed by GitHub

perf: set header can use For Qs (#562)

set header can use For Qs
parent bf365e26
...@@ -155,7 +155,7 @@ export class VAxios { ...@@ -155,7 +155,7 @@ export class VAxios {
// support form-data // support form-data
supportFormData(config: AxiosRequestConfig) { supportFormData(config: AxiosRequestConfig) {
const headers = config.headers; const headers = config.headers || this.options.headers;
const contentType = headers?.['Content-Type'] || headers?.['content-type']; const contentType = headers?.['Content-Type'] || headers?.['content-type'];
if ( if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment