gdfgdfdfg

This commit is contained in:
Hepatica
2024-02-25 06:23:36 +01:00
parent e5b98e6408
commit 72aea3ad3f

View File

@@ -502,6 +502,7 @@ export default {
img: `https://avatar.spworlds.ru/face/55/${this.player.name}.png`, // Предполагаем структуру URL из имени пользователя img: `https://avatar.spworlds.ru/face/55/${this.player.name}.png`, // Предполагаем структуру URL из имени пользователя
nickname: this.player.name, nickname: this.player.name,
}); });
this.firstStartOfPage = false;
} else { } else {
this.slides.push({ this.slides.push({
img: `https://avatar.spworlds.ru/face/55/${player.UserName}.png`, // Предполагаем структуру URL из имени пользователя img: `https://avatar.spworlds.ru/face/55/${player.UserName}.png`, // Предполагаем структуру URL из имени пользователя
@@ -700,9 +701,16 @@ export default {
this.startGameTimer(dataObject.CurrentGame.StartGameUtc); this.startGameTimer(dataObject.CurrentGame.StartGameUtc);
} }
this.updatePlayerInfo(
dataObject.LastGame.WinnerUserName,
dataObject.LastGame.WinStake,
dataObject.LastGame.WinnerPercentage
);
if (dataObject.CurrentGame.GameState == "Running") { if (dataObject.CurrentGame.GameState == "Running") {
this.autoplay = 20; this.autoplay = 20;
if (this.idCurrentGame=="") { if (this.idCurrentGame == "") {
this.firstStartOfPage = true;
this.idCurrentGame = dataObject.CurrentGame.Id; this.idCurrentGame = dataObject.CurrentGame.Id;
this.mapPlayersToSlides( this.mapPlayersToSlides(
dataObject.CurrentGame.PlayerList, dataObject.CurrentGame.PlayerList,
@@ -710,12 +718,6 @@ export default {
); );
} }
} }
this.updatePlayerInfo(
dataObject.LastGame.WinnerUserName,
dataObject.LastGame.WinStake,
dataObject.LastGame.WinnerPercentage
);
} else { } else {
// Если данные не определены или пусты, выводим соответствующее сообщение в консоль // Если данные не определены или пусты, выводим соответствующее сообщение в консоль
console.log("Received undefined or null data"); console.log("Received undefined or null data");