修改返回日期的显示
This commit is contained in:
parent
492e8e067f
commit
349c2a6f35
|
@ -107,7 +107,7 @@ export function timeAgo(backDate) {
|
|||
try {
|
||||
moment(backDate);
|
||||
} catch (e) {
|
||||
return;
|
||||
return '刚刚';
|
||||
}
|
||||
if(typeof backDate ==='number'){
|
||||
backDate=backDate*1000
|
||||
|
@ -134,4 +134,5 @@ export function timeAgo(backDate) {
|
|||
if (seconds) {
|
||||
return seconds + "秒前";
|
||||
}
|
||||
return "刚刚";
|
||||
}
|
Loading…
Reference in New Issue