fix: get game info
This commit is contained in:
parent
01a7f363d4
commit
97f8613f28
@ -79,7 +79,7 @@ io.emit("join", id, (data) => {
|
|||||||
|
|
||||||
io.on("game-info", (data) => {
|
io.on("game-info", (data) => {
|
||||||
const { name, session, end } = data;
|
const { name, session, end } = data;
|
||||||
Object.assign(gameInfo, { name, session, end });
|
Object.assign(gameInfo, { session, end });
|
||||||
countDownTime.restart(end);
|
countDownTime.restart(end);
|
||||||
getGameHistory();
|
getGameHistory();
|
||||||
});
|
});
|
||||||
@ -113,6 +113,8 @@ const GameInfo = () => {
|
|||||||
(res) => {
|
(res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
choices.value = res.data.info?.betOptions ?? []
|
choices.value = res.data.info?.betOptions ?? []
|
||||||
|
gameInfo.name = res.data.info.name
|
||||||
|
console.log(res.data.info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user