修改返回日期的显示

This commit is contained in:
何童崇 2021-08-27 16:31:15 +08:00
parent 492e8e067f
commit 349c2a6f35
1 changed files with 2 additions and 1 deletions

View File

@ -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 "刚刚";
}