13 lines
222 B
JavaScript
13 lines
222 B
JavaScript
|
import Vue from 'vue'
|
||
|
import Vuex from 'vuex'
|
||
|
import User from './modules/user'
|
||
|
|
||
|
// https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
|
||
|
|
||
|
Vue.use(Vuex)
|
||
|
export default new Vuex.Store({
|
||
|
modules: {
|
||
|
User
|
||
|
}
|
||
|
})
|