import * as actionTypes from './action-type';

// 保存表单数据
export const saveFormData = (value, datatype) => {
  return {
    type: actionTypes.SAVEFORMDATA,
    value,
    datatype,
  }
}

// 保存图片地址
export const saveImg = path => {
  return {
    type: actionTypes.SAVEIMG,
    path,
  }
}

// 保存图片地址
export const clearData = () => {
  return {
    type: actionTypes.CLEARDATA,
  }
}