fix: get game info

This commit is contained in:
hiyu 2024-06-19 18:21:44 +07:00
parent 01a7f363d4
commit 97f8613f28

View File

@ -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)
}
}
)