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

Extract commonly used useAxios() hooks as reusable composables #28

Open
uier opened this issue Jan 8, 2023 · 2 comments
Open

Extract commonly used useAxios() hooks as reusable composables #28

uier opened this issue Jan 8, 2023 · 2 comments

Comments

@uier
Copy link
Member

uier commented Jan 8, 2023

#27 (comment)

@uier uier added this to NOJ Board Jan 8, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in NOJ Board Jan 8, 2023
@toto6038
Copy link
Contributor

toto6038 commented Apr 6, 2023

目前是用 vueuse 的 useAxios,不直接用 Axios 是有什麼考量嗎?

@uier
Copy link
Member Author

uier commented Apr 6, 2023

目前是用 vueuse 的 useAxios,不直接用 Axios 是有什麼考量嗎?

我們只有 GET 使用 useAxios,大部分是因為請求的方式含有動態的參數,以 Hooks 的形式比較簡潔

api.ts 中可以看到我們其他 POST, PUT, DELETE 的 API Calls 是用 Axios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants