index.js 298 B

12345678910111213141516
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import getters from './getters'
  4. import location from './modules/location'
  5. import app from './modules/app'
  6. Vue.use(Vuex) // vue的插件机制
  7. // Vuex.Store 构造器选项
  8. export default new Vuex.Store({
  9. getters,
  10. modules: {
  11. location,
  12. app
  13. }
  14. })