Skip to content

Commit 549c207

Browse files
authored
fix: play shared (#125)
1 parent 79b14b2 commit 549c207

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/components/group/Activity.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ const handleHtmlLinkClick = (event: MouseEvent) => {
270270
router.push({
271271
name: 'host-live',
272272
params: { quizzflyId: post.quizzfly.id },
273+
query: { group_id: groupId },
273274
})
274275
"
275276
>

src/components/group/Shared.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const listQuizzflyShared = async () => {
102102
router.push({
103103
name: 'host-live',
104104
params: { quizzflyId: quizzfly.id },
105+
query: { group_id: groupId },
105106
})
106107
"
107108
>

src/components/room/ModalStartHostLive.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ const onSubmit = async () => {
3030
await roomStore.initRoom(currentSetting.value)
3131
emits('start')
3232
} else {
33-
const data = {
33+
const data: any = {
3434
quizzfly_id: quizzflyId,
3535
is_show_question: false,
3636
is_auto_play: false,
3737
lobby_music: 'string',
3838
}
39+
const group_id = route.query.group_id as string
40+
if (group_id) {
41+
data.group_id = group_id
42+
}
3943
await roomStore.initRoom(data)
4044
handleStartClick()
4145
}

src/pages/groups/detail/post-detail.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ onBeforeMount(() => {
251251
router.push({
252252
name: 'host-live',
253253
params: { quizzflyId: postInfo?.quizzfly.id },
254+
query: { group_id: groupId },
254255
})
255256
"
256257
>

0 commit comments

Comments
 (0)