This commit is contained in:
Hepatica
2024-02-25 05:34:39 +01:00
parent f18cff9842
commit 277d103103

View File

@@ -396,6 +396,7 @@ export default {
lastUserWinerGameId: " ", lastUserWinerGameId: " ",
lastUserWinner: "", lastUserWinner: "",
firstStartOfPage: false, firstStartOfPage: false,
winStake: 0,
// lastIdGame: "", // lastIdGame: "",
}; };
}, },
@@ -665,6 +666,8 @@ export default {
try { try {
if (data) { if (data) {
const dataObject = JSON.parse(data); const dataObject = JSON.parse(data);
this.winStake = dataObject.CurrentGame.winStake;
console.log(dataObject); console.log(dataObject);
if (dataObject.CurrentGame.GameState == "WaitingForPlayers") { if (dataObject.CurrentGame.GameState == "WaitingForPlayers") {
@@ -699,6 +702,7 @@ export default {
if (dataObject.CurrentGame.GameState == "Running") { if (dataObject.CurrentGame.GameState == "Running") {
this.autoplay = 20; this.autoplay = 20;
} }
this.updatePlayerInfo( this.updatePlayerInfo(
dataObject.LastGame.WinnerUserName, dataObject.LastGame.WinnerUserName,
dataObject.LastGame.WinStake, dataObject.LastGame.WinStake,