refactor axios.

This commit is contained in:
xuyue committed 2023-01-08 15:07:32 +08:00
1 parent e306e6b463
commit a3456595a5
4 files changed
+12 -11

No files matched your search

+1 -1
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,
})
}