Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: request plugin type and usage #5992

Merged
merged 6 commits into from
Mar 1, 2023
Merged

Conversation

luhc228
Copy link
Collaborator

@luhc228 luhc228 commented Feb 28, 2023

Fix: #5922

@luhc228 luhc228 changed the title Fix/request plugin type and usage fix: equest plugin type and usage Feb 28, 2023
@ClarkXia ClarkXia changed the title fix: equest plugin type and usage fix: request plugin type and usage Feb 28, 2023
@ClarkXia ClarkXia added the need review Need Review label Mar 1, 2023
// 用法 2:传入配置对象
const { data, error, loading } = useRequest({
// 用法 1:传入 Axios 配置对象
const { data, error, loading, request } = useRequest({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useRequest('/api/repo'); 的方式不提供了吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好像理论上可以支持,我顺手支持掉吧

wssgcg1213
wssgcg1213 previously approved these changes Mar 1, 2023
@luhc228 luhc228 merged commit dae91e2 into release/next Mar 1, 2023
@luhc228 luhc228 deleted the fix/request-plugin-type branch March 1, 2023 10:01
@ClarkXia ClarkXia mentioned this pull request Mar 1, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need review Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants