index.js 693 Bytes
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import user from './modules/user'
import permission_routes from './modules/permission_routes'
import setTabs from './modules/setTabs'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
        zdbsm: '',
        xzqList: [],
        djqList: [],
        djzqList: [],
        //创建自然幢时需要用到的临时存储信息
        zrzbsm: '',
        xmmc: '',
        zdmj: '',
        zdzl: ''
    },
    modules: {
        user,
        setTabs,
        permission_routes
    },
    getters
})

export default store