knowyt/client/src/store/game.js

12 lines
203 B
JavaScript
Raw Normal View History

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