11 lines
263 B
JavaScript
11 lines
263 B
JavaScript
export const state = () => ({
|
|
cardsShown: true
|
|
})
|
|
|
|
export const mutations = {
|
|
toggleCardsShown (state) {
|
|
console.log(state.cardsShown)
|
|
if (process.browser) localStorage.setItem('cardsShown', !state.cardsShown)
|
|
state.cardsShown = !state.cardsShown
|
|
}
|
|
} |