Browse Source

取消封装

lifanagju_citu 9 months ago
parent
commit
76b0771298
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/date.js

+ 1 - 1
src/utils/date.js

@@ -1,6 +1,6 @@
 // 时间戳转换为年月日时分秒
 // 时间戳转换为年月日时分秒
 export const timesTampChange = (timestamp, format = 'Y-M-D h:m:s') => {
 export const timesTampChange = (timestamp, format = 'Y-M-D h:m:s') => {
-  if (timestamp === -28800000) return '至今'
+  // if (timestamp === null) return '至今'
   if (!timestamp) return ''
   if (!timestamp) return ''
   const date = new Date(timestamp)
   const date = new Date(timestamp)
   const Y = date.getFullYear().toString()
   const Y = date.getFullYear().toString()