From 97f8613f28d07825f8b796ba60a1e2bf5d6f4bef Mon Sep 17 00:00:00 2001 From: hiyu Date: Wed, 19 Jun 2024 18:21:44 +0700 Subject: [PATCH] fix: get game info --- src/components/lottery/LotteryGame.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/lottery/LotteryGame.vue b/src/components/lottery/LotteryGame.vue index b4a0466..dd17b8e 100644 --- a/src/components/lottery/LotteryGame.vue +++ b/src/components/lottery/LotteryGame.vue @@ -79,7 +79,7 @@ io.emit("join", id, (data) => { io.on("game-info", (data) => { const { name, session, end } = data; - Object.assign(gameInfo, { name, session, end }); + Object.assign(gameInfo, { session, end }); countDownTime.restart(end); getGameHistory(); }); @@ -113,6 +113,8 @@ const GameInfo = () => { (res) => { if (res.success) { choices.value = res.data.info?.betOptions ?? [] + gameInfo.name = res.data.info.name + console.log(res.data.info) } } )