Add setObject state mutation.
This commit is contained in:
parent
88739a8baf
commit
14cda8a50f
1 changed files with 3 additions and 0 deletions
|
|
@ -104,6 +104,9 @@ export default new Vuex.Store({
|
||||||
newPlayer(state, player) {
|
newPlayer(state, player) {
|
||||||
state.players.push(player);
|
state.players.push(player);
|
||||||
},
|
},
|
||||||
|
setObject(state, chosenObject) {
|
||||||
|
state.chosen_object = chosenObject;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue