mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed bug with exit from page crash
This commit is contained in:
@@ -116,6 +116,14 @@ export default {
|
||||
if (this.crashObject.Status === 'GameEnd' && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
|
||||
this.startGame = false
|
||||
}
|
||||
if (
|
||||
this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName')) &&
|
||||
this.startGame === false &&
|
||||
this.crashObject.Status !== 'GameEnd' &&
|
||||
this.crashObject.Players.some(player => player.UserGameState !== 'Win')
|
||||
) {
|
||||
this.startGame = true;
|
||||
}
|
||||
})
|
||||
},
|
||||
validations() {
|
||||
|
||||
Reference in New Issue
Block a user