diff --git a/packages/client/src/pages/my-groups/group.vue b/packages/client/src/pages/my-groups/group.vue index e82c3ce20..dab075ba3 100644 --- a/packages/client/src/pages/my-groups/group.vue +++ b/packages/client/src/pages/my-groups/group.vue @@ -45,7 +45,7 @@ const props = defineProps<{ } }>(); -const users = ref([]); +const users.value = ref([]); const group = ref(); const router = useRouter(); @@ -59,11 +59,11 @@ async function fetch() { os.api('users/groups/show', { groupId: props.groupId, }).then(gp => { - group = gp; + group.value = gp; os.api('users/show', { userIds: group.userIds }).then(us => { - users = us; + users.value = us; }); }); } @@ -84,7 +84,7 @@ function removeUser(user) { groupId: group.id, userId: user.id }).then(() => { - users = users.filter(x => x.id !== user.id); + users.value = users.filter(x => x.id !== user.id); }); }