This commit is contained in:
quantulr
2023-08-31 16:24:37 +08:00
parent 0288146b0d
commit 5bbe958729
32 changed files with 317 additions and 105 deletions

View File

@ -11,7 +11,10 @@ export const login = (data: LoginForm) =>
data,
});
export const getInfo = () =>
export const getInfo = (token?: string) =>
httpClient.request({
url: "/getInfo",
header: {
Authorization: token ? `Bearer ${token}` : undefined,
},
});