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 4 additions and 0 deletions
Showing only changes of commit 6061b37887 - Show all commits

View File

@ -73,6 +73,10 @@ export const useUserStore = defineStore({
}); });
}, },
async deleteAvatar(user: FG.User) {
await api.delete(`/users/${user.userid}/avatar`)
},
async getPermissions(force = false) { async getPermissions(force = false) {
if (force || this.permissions.length === 0) { if (force || this.permissions.length === 0) {
const { data } = await api.get<FG.Permission[]>('/roles/permissions'); const { data } = await api.get<FG.Permission[]>('/roles/permissions');