loulijun2021
2022-07-08 5b12ae51e0f42a1f17e81afa5385f3df57ea8810
src/utils/global.js
@@ -22,7 +22,7 @@
}
// 时间处理函数
export function handleDatatime(value) {
export function handleDatetime(value) {
  const data = new Date(value)
  const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
  const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate()