mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed visual bug with start game on click max-btn
This commit is contained in:
@@ -25,6 +25,7 @@ export default {
|
||||
.then(response => {
|
||||
this.balance = response.currentMoney
|
||||
})
|
||||
eventBus.emit('Updatebalance-saper')
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -373,6 +373,14 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
eventBus.on('Updatebalance-saper', () => {
|
||||
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
.then(response => {
|
||||
this.balance = response
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
clickPlayButton() {
|
||||
this.v$.$touch()
|
||||
@@ -472,7 +480,12 @@ export default {
|
||||
if (content === 'max') {
|
||||
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||
.then((response) => {
|
||||
this.amountDeposit = parseInt(response.currentMoney)
|
||||
console.log(response.currentMoney, this.balance)
|
||||
const responseBalance = response.currentMoney
|
||||
|
||||
if (responseBalance === this.balance) {
|
||||
this.amountDeposit = parseInt(responseBalance)
|
||||
}
|
||||
})
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user