🎨 Упростил функцию ответа

This commit is contained in:
2022-01-13 00:08:25 +03:00
parent 393cbfdf8d
commit f4e7a49df8
2 changed files with 12 additions and 24 deletions

View File

@@ -45,7 +45,6 @@ export default {
return {
options: null,
card: null,
oldCard: null,
correctAnswer: null, // True or False
selectedAnswer: null, // Чье-то имя
showResult: false
@@ -79,7 +78,6 @@ export default {
innerThis.score.wrong++
}
}, 805)
this.oldCard = this.card
axios
.post(process.env.VUE_APP_BACKEND + '/answer', {
'data': {
@@ -89,8 +87,7 @@ export default {
})
.then((response) => {
this.correctAnswer = response.data.correct
this.card.name = response.data.name
this.card.date = response.data.date
this.card = response.data.card
})
}
},