瀏覽代碼

取消封装

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()