|
@@ -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 (
|