diff --git a/src/components/quizzfly/create/answer/Choice.vue b/src/components/quizzfly/create/answer/Choice.vue index 6fa685f..ba60caf 100644 --- a/src/components/quizzfly/create/answer/Choice.vue +++ b/src/components/quizzfly/create/answer/Choice.vue @@ -16,6 +16,7 @@ const props = defineProps<{ const emits = defineEmits<{ (e: 'update:modelValue', value: Answer): void + (e: 'delete', value: Answer): void }>() const updateAnswer = useDebounceFn((value: Answer) => { @@ -32,7 +33,7 @@ onMounted(() => { diff --git a/src/pages/groups/index.vue b/src/pages/groups/index.vue index ba65b91..8b77f93 100644 --- a/src/pages/groups/index.vue +++ b/src/pages/groups/index.vue @@ -39,6 +39,13 @@ const pageQueryComputed = computed({ }, }) +watch( + () => search.value, + () => { + fetchGroups() + }, +) + const fetchGroups = () => { groupStore.fetchGroups({ page: pageQueryComputed.value, diff --git a/src/pages/room/member-play/instructions-play.vue b/src/pages/room/member-play/instructions-play.vue index 0722738..bc3fdbe 100644 --- a/src/pages/room/member-play/instructions-play.vue +++ b/src/pages/room/member-play/instructions-play.vue @@ -62,6 +62,7 @@ onBeforeMount(() => { console.log('name', name, 'roomPin', roomPin) const participant_id = localStorage.getItem('participantID') participantId.value = participant_id || '' + console.log('participant_id', participant_id) const joinRoomData: any = { nick_name: name, room_pin: roomPin, diff --git a/src/services/group.ts b/src/services/group.ts index f54e19f..a1f0164 100644 --- a/src/services/group.ts +++ b/src/services/group.ts @@ -13,7 +13,7 @@ export const getGroupsApi = async ({ page = 1, keyword = '' }): Promise a.id !== answer.id) || [], + ) + } catch (error) { + console.error(error) + showToast({ + description: apiError(error).message, + variant: 'destructive', + }) + } + }, }, getters: { getSlideById: (state) => (id: string) => {