Commit 996f2f3c228ce887e81f3d263452b0cd2d7716be

Authored by vben
1 parent b90a9557

chore: update deps

prettier.config.js
@@ -8,7 +8,6 @@ module.exports = { @@ -8,7 +8,6 @@ module.exports = {
8 quoteProps: 'as-needed', 8 quoteProps: 'as-needed',
9 bracketSpacing: true, 9 bracketSpacing: true,
10 trailingComma: 'all', 10 trailingComma: 'all',
11 - jsxBracketSameLine: false,  
12 jsxSingleQuote: false, 11 jsxSingleQuote: false,
13 arrowParens: 'always', 12 arrowParens: 'always',
14 insertPragma: false, 13 insertPragma: false,
src/utils/http/axios/index.ts
@@ -81,7 +81,7 @@ const transform: AxiosTransform = { @@ -81,7 +81,7 @@ const transform: AxiosTransform = {
81 81
82 // 请求之前处理config 82 // 请求之前处理config
83 beforeRequestHook: (config, options) => { 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 if (joinPrefix) { 86 if (joinPrefix) {
87 config.url = `${urlPrefix}${config.url}`; 87 config.url = `${urlPrefix}${config.url}`;
@@ -199,7 +199,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) { @@ -199,7 +199,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
199 timeout: 10 * 1000, 199 timeout: 10 * 1000,
200 // 基础接口地址 200 // 基础接口地址
201 // baseURL: globSetting.apiUrl, 201 // baseURL: globSetting.apiUrl,
202 - 202 +
203 headers: { 'Content-Type': ContentTypeEnum.JSON }, 203 headers: { 'Content-Type': ContentTypeEnum.JSON },
204 // 如果是form-data格式 204 // 如果是form-data格式
205 // headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED }, 205 // headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },