added logic for graph in crash

This commit is contained in:
Kostya
2024-02-04 15:33:28 +03:00
parent 20ba9be6ae
commit 2ec5085a71
2 changed files with 47 additions and 57 deletions

View File

@@ -45,7 +45,7 @@
</div>
</div>
<div class="crash-game__graph">
<crash-graph-component></crash-graph-component>
<crash-graph-component :crashdata="crashObject"></crash-graph-component>
</div>
</div>
</section>
@@ -81,9 +81,10 @@ export default {
data() {
return {
SaperNumbers,
clickedBtn: null,
amountDeposit: 0,
autoRatio: 0,
timerGame: ''
crashObject: ''
}
},
setup() {
@@ -94,8 +95,8 @@ export default {
try {
const dataCrashParse = JSON.parse(dataCrash)
this.timerGame = dataCrashParse.WaitingTime
console.log(this.timerGame)
this.crashObject = dataCrashParse
console.log(dataCrashParse)
}
catch (e) {
console.error(e)