小小儁爺
2026-01-15 70e1ded3cea2c5a948eaf0dc6f44098ec6cd7a6a
src/utils/global.js
@@ -41,6 +41,16 @@
  return data.getFullYear() + '-' + month + '-' + date
}
// 时间处理函数  年月日   往前推一天
export function handleDateReduceOneDay(value) {
  const newDate = new Date(value)
  newDate.setDate(newDate.getDate() - 1)
  const data = new Date(newDate)
  const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
  const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate()
  return data.getFullYear() + '-' + month + '-' + date
}
// 事件处理函数  时分秒
// 获取当前时间
export function handleDatetime2(value) {