chore: update deps

This commit is contained in:
vben 2021-09-09 22:59:10 +08:00
parent b90a9557a3
commit 996f2f3c22
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@ module.exports = {
quoteProps: 'as-needed',
bracketSpacing: true,
trailingComma: 'all',
jsxBracketSameLine: false,
jsxSingleQuote: false,
arrowParens: 'always',
insertPragma: false,

View File

@ -81,7 +81,7 @@ const transform: AxiosTransform = {
// 请求之前处理config
beforeRequestHook: (config, options) => {
const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true,urlPrefix } = options;
const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true, urlPrefix } = options;
if (joinPrefix) {
config.url = `${urlPrefix}${config.url}`;
@ -199,7 +199,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
timeout: 10 * 1000,
// 基础接口地址
// baseURL: globSetting.apiUrl,
headers: { 'Content-Type': ContentTypeEnum.JSON },
// 如果是form-data格式
// headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },