release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 656d7a9e3c - Show all commits

View File

@ -65,6 +65,13 @@ export const useUserStore = defineStore({
return data;
},
async deleteUser(user: FG.User | string) {
if (typeof user === 'object') user = user.userid;
await api.delete(`/users/${user}`);
this.users = this.users.filter(u => u.userid != user);
},
async uploadAvatar(user: FG.User, file: string | File) {
const formData = new FormData();
formData.append('file', file);