Last active
July 9, 2021 10:23
-
-
Save techwizzdom/2fd6579bf2f6714479c8cc3ccb531d78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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