小小儁爺
2024-09-20 328adde6e667404fd3aaf388c6191c5b88e8da92
src/utils/global.js
@@ -22,6 +22,13 @@
  return option
}
// 时间处理函数  年月
export function handleDatetime4(value) {
  const data = new Date(value)
  const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
  return data.getFullYear() + '-' + month
}
// 时间处理函数  年月日
export function handleDatetime(value) {
  const data = new Date(value)