chore: update deps
This commit is contained in:
parent
b90a9557a3
commit
996f2f3c22
|
|
@ -8,7 +8,6 @@ module.exports = {
|
||||||
quoteProps: 'as-needed',
|
quoteProps: 'as-needed',
|
||||||
bracketSpacing: true,
|
bracketSpacing: true,
|
||||||
trailingComma: 'all',
|
trailingComma: 'all',
|
||||||
jsxBracketSameLine: false,
|
|
||||||
jsxSingleQuote: false,
|
jsxSingleQuote: false,
|
||||||
arrowParens: 'always',
|
arrowParens: 'always',
|
||||||
insertPragma: false,
|
insertPragma: false,
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ const transform: AxiosTransform = {
|
||||||
|
|
||||||
// 请求之前处理config
|
// 请求之前处理config
|
||||||
beforeRequestHook: (config, options) => {
|
beforeRequestHook: (config, options) => {
|
||||||
const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true,urlPrefix } = options;
|
const { apiUrl, joinPrefix, joinParamsToUrl, formatDate, joinTime = true, urlPrefix } = options;
|
||||||
|
|
||||||
if (joinPrefix) {
|
if (joinPrefix) {
|
||||||
config.url = `${urlPrefix}${config.url}`;
|
config.url = `${urlPrefix}${config.url}`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue