knowyt/client/src/store/game.js

12 lines
209 B
JavaScript
Raw Normal View History

2021-08-13 20:39:49 +00:00
export const state = () => ({
state: "...",
phase: "...",
})
export const mutations = {
setStateAndPhase(state, { state: gameState, phase }) {
state.state = gameState
state.phase = phase
},
}