Unverified 提交 5724bc5b 作者: Yirius 提交者: GitHub

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

set header can use For Qs
上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论