import Vue from 'vue'
import Vuex from 'vuex'

// Modules
import app from './app'
import appConfig from './app-config'
import verticalMenu from './vertical-menu'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        app,
        appConfig,
        verticalMenu,
    },
    strict: process.env.DEV,
    // state: {
    //     accessToken: window.localStorage.getItem('token') || {}
    // },
    // mutations: {
    //     setToken(state, tokenObj) {
    //         state.tokenInfo = tokenObj
    //         window.localStorage.setItem('accessToken', tokenObj)
    //     }
    // },
})
