1234567891011121314151617 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- import posts from './modules/posts'
- Vue.use(Vuex)
- // https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
- // const debug = process.env.NODE_ENV !== 'production'
- export default new Vuex.Store({
- modules: {
- posts
- }
- // strict: debug,
- // plugins: debug ? [createLogger()] : []
- })
|