Skip to content

Instantly share code, notes, and snippets.

@jordanhudgens
Created March 15, 2019 22:14
Show Gist options
  • Save jordanhudgens/2fcbd08c4bd6fda13478a5ff9c3b783a to your computer and use it in GitHub Desktop.
Save jordanhudgens/2fcbd08c4bd6fda13478a5ff9c3b783a to your computer and use it in GitHub Desktop.
// src/store/index.js
import Vue from "vue";
import Vuex from "vuex";
import pages from "./modules/pages";
import employees from "./modules/employees";
import events from "./modules/events";
import locations from "./modules/locations";
import menus from "./modules/menus";
import menusSections from "./modules/menu-section";
import hours from "./modules/hours";
import auth from "./modules/auth";
import routes from "./modules/routes";
import themes from "./modules/themes";
import baseState from "./modules/base-state";
Vue.use(Vuex);
export default new Vuex.Store({
modules: {
pages,
employees,
events,
locations,
menus,
menusSections,
hours,
auth,
routes,
themes,
baseState
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment