Skip to content

Instantly share code, notes, and snippets.

@techwizzdom
Last active July 9, 2021 10:23
Show Gist options
  • Save techwizzdom/2fd6579bf2f6714479c8cc3ccb531d78 to your computer and use it in GitHub Desktop.
Save techwizzdom/2fd6579bf2f6714479c8cc3ccb531d78 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Vuex from 'vuex'
// Modules import
import UserModule from 'modules/user'
import OrganisationModule from 'modules/organisation'
Vue.use(Vuex)
const state = {}
const actions = ({})
const mutations = ({})
const getters = ({})
const modules = {
user: userModule,
organisation: organisationModule
}
export default new Vuex.Store({
state,
actions,
mutations,
getters,
modules
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment