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 2 deletions
Showing only changes of commit 53f053a294 - Show all commits

View File

@ -37,9 +37,11 @@ export const useUserStore = defineStore({
} }
}, },
async getUsers(force = false) { async getUsers(force = false, filter?: {userids: undefined|string}) {
if (force || this._dirty_users) { if (force || this._dirty_users) {
const { data } = await api.get<FG.User[]>('/users'); const { data } = await api.get<FG.User[]>('/users', {
params: filter
});
data.forEach((user) => { data.forEach((user) => {
if (user.birthday) user.birthday = new Date(user.birthday); if (user.birthday) user.birthday = new Date(user.birthday);
}); });