refactor axios.

This commit is contained in:
2023-01-08 15:07:32 +08:00
parent e306e6b463
commit a3456595a5
4 changed files with 12 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ export function logout() {
}
export function getUserInfo(username: string) {
return useAxios("profile", { method: "get", params: { username } }, http, {
return useAxios("profile", { params: { username } }, http, {
immediate: false,
})
}