更换头像功能

This commit is contained in:
禺狨
2023-06-29 15:25:22 +08:00
parent 5df37162b9
commit f1e50afe32
5 changed files with 94 additions and 34 deletions

View File

@@ -24,8 +24,6 @@ export function courses(depId: number, categoryId: number) {
}
// 修改头像
export function avatar(file: any) {
return client.put("/api/v1/user/avatar", {
file: file,
});
export function avatar(params: any) {
return client.put("/api/v1/user/avatar", params);
}