Skip to content

Commit

Permalink
Merge pull request #28 from kne-union/2.0
Browse files Browse the repository at this point in the history
修正request行为
  • Loading branch information
zhipenglin authored Jul 15, 2024
2 parents 540930e + e6a4267 commit f9a7538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kne/react-fetch",
"version": "1.5.3",
"version": "1.5.4",
"description": "用于获取数据的react组件",
"main": "dist/index.js",
"module": "dist/index.modern.js",
Expand Down
4 changes: 3 additions & 1 deletion src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const request = (props) => {
setError: (...args) => onError && onError(...args),
setIsComplete: (...args) => onIsCompleteChange && onIsCompleteChange(...args),
setIsLoading: (...args) => onIsLoadingChange && onIsLoadingChange(...args)
})({});
})({}).then(({outputStack}) => {
return outputStack['transform-response'];
});
};

export default request;

0 comments on commit f9a7538

Please sign in to comment.