index.js 314 B

123456789101112131415161718
  1. import Vue from "vue";
  2. import VueX from "vuex";
  3. import getters from "./getters";
  4. import auth from "./modules/auth";
  5. import user from "./modules/user";
  6. import app from "./modules/app";
  7. Vue.use(VueX);
  8. export default new VueX.Store({
  9. state: () => {},
  10. getters,
  11. modules: {
  12. auth,
  13. user,
  14. app,
  15. },
  16. });