Handle no avatar, add delete avatar support

This commit is contained in:
blankhex committed 2026-10-22 23:08:23 +03:00
1 parent 35bff424f1
commit 3864a4c1cc
9 files changed
+110 -11

No files matched your search

+1
View File
@@ -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