add member number of group
This commit is contained in:
@@ -402,3 +402,27 @@ export function useMemberTable() {
|
||||
exportCsv,
|
||||
};
|
||||
}
|
||||
|
||||
export async function getAllMembers(): Promise<Members> {
|
||||
const { NotifyResponse } = useNotify();
|
||||
|
||||
const allMembers = ref<Members>([]);
|
||||
|
||||
await appApi
|
||||
.get('members')
|
||||
.then((resp) => {
|
||||
if (resp.data === null) {
|
||||
return [];
|
||||
}
|
||||
allMembers.value = resp.data as Members;
|
||||
if (allMembers.value === null) {
|
||||
return [];
|
||||
}
|
||||
})
|
||||
|
||||
.catch((err) => {
|
||||
NotifyResponse(err, 'error');
|
||||
});
|
||||
|
||||
return allMembers.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user