Commit 996f2f3c228ce887e81f3d263452b0cd2d7716be

Authored by vben
1 parent b90a9557

chore: update deps

prettier.config.js
... ... @@ -8,7 +8,6 @@ module.exports = {
8 8 quoteProps: 'as-needed',
9 9 bracketSpacing: true,
10 10 trailingComma: 'all',
11   - jsxBracketSameLine: false,
12 11 jsxSingleQuote: false,
13 12 arrowParens: 'always',
14 13 insertPragma: false,
... ...
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 },
... ...