release v2.0.0 #4
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue