system.js 641 Bytes
import reduceReducers from 'reduce-reducers';
import * as types from '../actionTypes';
import { typeToLowerCase, reducerFactory } from '../../utils/commonUtils';

const initialState = {
    [typeToLowerCase(types.SYSTEM_MENU_SELECTED_KEYS)]: { openKeys: [], selectedKeys: [] },
    [typeToLowerCase(types.SYSTEM_MENU_PERMS)]: [{
        module: "home",
        module_name: "首页",
        parent_module: "",
        parent_module_name: ""
    }, {
        module: "statistics",
        module_name: "统计",
        parent_module: "",
        parent_module_name: ""
    }]
};

export default reduceReducers(initialState, reducerFactory);