mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +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() {
|
created() {
|
||||||
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||||
@@ -264,7 +267,7 @@ export default {
|
|||||||
this.flippedCards.splice(this.flippedCards.indexOf(index), 1);
|
this.flippedCards.splice(this.flippedCards.indexOf(index), 1);
|
||||||
console.log(index, this.flippedCards)
|
console.log(index, this.flippedCards)
|
||||||
} else {
|
} else {
|
||||||
this.flippedCards = index;
|
this.flippedCards.push(index);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stepsEndOfWord(index) {
|
stepsEndOfWord(index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user