Skip to content

Commit cfc4abd

Browse files
committed
fix: update dataField configuration to use userConfig instead of api.config
1 parent 46dca7a commit cfc4abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default (api: IApi) => {
5252
dirname(require.resolve('vue-hooks-plus/package.json')),
5353
);
5454
const axiosPath = winPath(dirname(require.resolve('axios/package.json')));
55-
let dataField = api.config.request?.dataField;
55+
let dataField = api.userConfig.request?.dataField;
5656
if (dataField === undefined) dataField = 'data';
5757
const isEmpty = dataField === '';
5858
const formatResult = isEmpty

0 commit comments

Comments
 (0)