mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
refactor, added watcher for flippedcards
This commit is contained in:
@@ -214,6 +214,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
flippedCards: function (value) {
|
||||
console.log(value)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||
@@ -264,7 +267,7 @@ export default {
|
||||
this.flippedCards.splice(this.flippedCards.indexOf(index), 1);
|
||||
console.log(index, this.flippedCards)
|
||||
} else {
|
||||
this.flippedCards = index;
|
||||
this.flippedCards.push(index);
|
||||
}
|
||||
},
|
||||
stepsEndOfWord(index) {
|
||||
|
||||
Reference in New Issue
Block a user