import webapi from './webapi'

export function getTreeData(reduce, gf, data) {
  return async (dispatch, getState) => {
    let data = await webapi.getFullData()
    if (data) {
      reduce('treeData', { type: 'update', data})
    }
  }
}
