Make deep clone of resources, access state by getter

This commit is contained in:
Kevin
2019-09-05 21:12:06 +02:00
parent a10f5d7f25
commit e3a786bc16
4 changed files with 11 additions and 8 deletions

View File

@@ -2,6 +2,10 @@ export const state = () => ({
cardsShown: true
})
export const getters = {
isCardsShown: state => state.cardsShown
}
export const mutations = {
toggleCardsShown(state) {
console.log(state.cardsShown)