Commit 996f2f3c228ce887e81f3d263452b0cd2d7716be
1 parent
b90a9557
chore: update deps
Showing
2 changed files
with
2 additions
and
3 deletions
prettier.config.js
src/utils/http/axios/index.ts
... | ... | @@ -81,7 +81,7 @@ const transform: AxiosTransform = { |
81 | 81 | |
82 | 82 | // 请求之前处理config |
83 | 83 | beforeRequestHook: (config, options) => { |
84 | - const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true,urlPrefix } = options; | |
84 | + const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true, urlPrefix } = options; | |
85 | 85 | |
86 | 86 | if (joinPrefix) { |
87 | 87 | config.url = `${urlPrefix}${config.url}`; |
... | ... | @@ -199,7 +199,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) { |
199 | 199 | timeout: 10 * 1000, |
200 | 200 | // 基础接口地址 |
201 | 201 | // baseURL: globSetting.apiUrl, |
202 | - | |
202 | + | |
203 | 203 | headers: { 'Content-Type': ContentTypeEnum.JSON }, |
204 | 204 | // 如果是form-data格式 |
205 | 205 | // headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED }, | ... | ... |