2018-09-02 23:26:15 +03:00
|
|
|
import Vuex from 'vuex'
|
2018-09-13 10:51:20 +03:00
|
|
|
import category from 'client/store/modules/category'
|
2018-09-21 16:09:32 +03:00
|
|
|
import categoryItem from 'client/store/modules/categoryItem'
|
2018-09-02 23:26:15 +03:00
|
|
|
|
2018-09-13 10:51:20 +03:00
|
|
|
function createStore() {
|
|
|
|
// TODO loggins mutations in dev
|
2018-09-02 23:26:15 +03:00
|
|
|
return new Vuex.Store({
|
2018-09-13 10:51:20 +03:00
|
|
|
state: {},
|
|
|
|
actions: {},
|
|
|
|
mutations: {},
|
|
|
|
modules: {
|
2018-09-21 16:09:32 +03:00
|
|
|
category,
|
|
|
|
categoryItem
|
2018-09-13 10:51:20 +03:00
|
|
|
}
|
2018-09-02 23:26:15 +03:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
createStore
|
|
|
|
}
|