import mutations from './mutations'
import * as actions from './actions'
import * as getters from './getters'
import { getStore } from '@/utils/store';

import sand from './modules/sand';
import ppt from './modules/ppt';
import edb from './modules/edb'

// 应用初始状态
const state = {
    theme: getStore({ name: 'theme' }) || '#409EFF',
    status: null,  //用户在线状态
    dataAuth:null,//是否有数据报表权限
    //角色类型编码
    Role_type: [
        "admin",      //管理员
        "ficc_admin",  //ficc管理员
        "ficc_seller",//ficc销售
        "rai_admin",   //权益管理员
        "rai_seller",  //权益销售
        "rai_researcher",  //权益研究员
        "ficc_researcher",  //ficc研究员
    ]
};

export default {
    state,
    actions,
    getters,
    mutations,
    modules: {
        sand,
        ppt,
        edb
    }
}