Handle no avatar, add delete avatar support
This commit is contained in:
1 parent
35bff424f1
commit
3864a4c1cc
9 files changed
+110
-11
No files matched your search
@@ -100,6 +100,7 @@ export const api = {
|
||||
form.append('avatar', file)
|
||||
return request('PUT', '/api/profile/avatar', form)
|
||||
},
|
||||
deleteAvatar: () => request('DELETE', '/api/profile/avatar'),
|
||||
avatarUrl: () => '/api/profile/avatar',
|
||||
|
||||
// sessions
|
||||
|
||||
Reference in new issue
Block a user