14 lines
206 B
JavaScript
14 lines
206 B
JavaScript
export const state = () => ({
|
|
players: [],
|
|
})
|
|
|
|
export const mutations = {
|
|
setPlayers(state, game) {
|
|
if (game) {
|
|
state.players = game.players
|
|
} else {
|
|
state.players = []
|
|
}
|
|
},
|
|
}
|