Commit eb9ce69c authored by Sebastien Chopin's avatar Sebastien Chopin

Use correct store declaration

parent 72ba41a7
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'
export default {
state() {
return {
export default () => {
return new Vuex.Store({
state: {
activeType: null,
itemsPerPage: 20,
items: {/* [id: number]: Item */},
......@@ -16,9 +18,9 @@ export default {
ask: [],
job: []
}
}
},
actions,
mutations,
getters
},
actions,
mutations,
getters
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment