过滤空值

  1. const valuesData = _.pickBy(fieldsValue, (v, k) => {
  2. console.log(v, k);
  3. return v !== null && v !== '' && v !== undefined;
  4. });