riku
2022-10-21 0f2fdf16f47bd2d1d8fee86449c3a5095ccc8c23
utils/util.js
@@ -15,14 +15,14 @@
  const thisDay = now.date()
  if (timeYear < thisYear) {
    return time.format('YYYY年MM月')
    return time.format('YYYY-MM-DD')
  } else if (timeMonth < thisMonth) {
    return time.format('MM月DD日')
    return time.format('MM-DD')
  } else if (timeDay < thisDay) {
    if (timeDay + 1 == thisDay) {
      return '昨天'
    } else {
      return time.format('MM月DD日')
      return time.format('MM-DD')
    }
  } else {
    return time.fromNow()