[api] revert user ssp
This commit is contained in:
parent
6fd3f045f8
commit
053fdae384
|
@ -37,11 +37,9 @@ export const useUserStore = defineStore({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async getUsers(force = false, filter?: {userids: undefined|string}) {
|
async getUsers(force = false) {
|
||||||
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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue