export const state = () => ({ state: "", phase: "", }) export const mutations = { setStateAndPhase(state, game) { if (game) { const { state: gameState, phase } = game state.state = gameState state.phase = phase } else { state.state = "" state.phase = "" } }, }