Fix example in Vuex docs
This commit is contained in:
parent
4371f84564
commit
089236976b
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,7 @@ This is the entry point for our store. You can use the following as a guide:
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import Vuex from 'vuex';
|
import Vuex from 'vuex';
|
||||||
import * as actions from './actions';
|
import * as actions from './actions';
|
||||||
|
import * as getters from './getters';
|
||||||
import * as mutations from './mutations';
|
import * as mutations from './mutations';
|
||||||
|
|
||||||
Vue.use(Vuex);
|
Vue.use(Vuex);
|
||||||
|
@ -514,6 +515,7 @@ Vue.use(Vuex);
|
||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
actions,
|
actions,
|
||||||
getters,
|
getters,
|
||||||
|
mutations,
|
||||||
state: {
|
state: {
|
||||||
users: [],
|
users: [],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue