소스 검색

取消封装

lifanagju_citu 9 달 전
부모
커밋
76b0771298
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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') => {
-  if (timestamp === -28800000) return '至今'
+  // if (timestamp === null) return '至今'
   if (!timestamp) return ''
   const date = new Date(timestamp)
   const Y = date.getFullYear().toString()