From 85ea42d273da9377fbe64532c16648c2daee7c9b Mon Sep 17 00:00:00 2001 From: Yirius <2951979767@qq.com> Date: Wed, 5 May 2021 21:16:53 +0800 Subject: [PATCH] set header can use For Qs set header can use For Qs --- src/utils/http/axios/Axios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http/axios/Axios.ts b/src/utils/http/axios/Axios.ts index ed650e715e4..1872f7426f8 100644 --- a/src/utils/http/axios/Axios.ts +++ b/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 (