Преглед на файлове

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

set header can use For Qs
Yirius преди 4 години
родител
ревизия
5724bc5b3b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/utils/http/axios/Axios.ts

+ 1 - 1
src/utils/http/axios/Axios.ts

@@ -155,7 +155,7 @@ export class VAxios {
 
   // support form-data
   supportFormData(config: AxiosRequestConfig) {
-    const headers = config.headers;
+    const headers = config.headers || this.options.headers;
     const contentType = headers?.['Content-Type'] || headers?.['content-type'];
 
     if (