//获得时间
export const getTime = (time?: number) => {
  const curTime = time ? new Date(time) : new Date();
  const addMinute = new Date(curTime.setMinutes(curTime.getMinutes()));
  const da = new Date(addMinute);
  const year = da.getFullYear();
  const month = da.getMonth() + 1;
  const date = da.getDate();
  const H = da.getHours();
  const M = da.getMinutes();
  const s = da.getSeconds() > 9 ? da.getSeconds() : '0' + da.getSeconds();
  return [month, date, year].join('/') + ' ' + [H, M, s].join(':');
};
