Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(profile): 修复个人主页报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Aug 21, 2018
1 parent 046cdc6 commit 23d1f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function formatDate(date, fmt = "yyyy/MM/dd hh:mm") {
export const time2txt = str => {
if (!str) return "";
// 兼容 IOS 保证传入数据格式 YYYY/MM/dd HH:mm:ss
let date = new Date(str.replace(/-/g, "/"));
let date = new Date(str);

// 时间差 = 当前时间 - date (单位: 毫秒)
let time = new Date() - date;
Expand Down

0 comments on commit 23d1f9a

Please sign in to comment.