1234567891011121314151617181920 |
- import { APP_LIST } from '../action-creator.sync.js'
-
- export default function app (state = {
- name: '',
- componentLeft: '',
- componentRight: '',
- customClass: '',
- icon: ''
- }, action) {
- switch (action.type) {
- case `Set/${APP_LIST}`:
- const rez = {}
- action.appList.forEach(app => (rez[app.name] = app))
- return rez
-
- default:
- return state
- }
- }
|