更新
This commit is contained in:
1 parent
01f9f2c514
commit
dc23ea53ed
25 files changed
+3116
-176
No files matched your search
@@ -12,8 +12,9 @@ function formatElapsed(minutes) {
|
||||
if (minutes < 1) return '刚刚';
|
||||
const h = Math.floor(minutes / 60);
|
||||
const m = minutes % 60;
|
||||
if (h === 0) return `${m} 分钟前`;
|
||||
return `${h} 小时 ${m} 分前`;
|
||||
if (h === 0) return `${m}分钟前`;
|
||||
if (m === 0) return `${h}小时前`;
|
||||
return `${h}小时${m}分前`;
|
||||
}
|
||||
|
||||
router.get('/', async (req, res) => {
|
||||
|
||||
Reference in new issue
Block a user