import { Map, fromJS, List } from 'immutable'

//表格数据
export function treeData(state = List(), action) {
  switch (action.type) {
    case 'update':
      state = List(fromJS(action.data))
      return state
    default:
      return state
  }
}
