From ab6f82e0fe1d909b310228fd21d1b6e0f50a6196 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 9 Aug 2022 12:02:32 +0800 Subject: [PATCH] =?UTF-8?q?:bug:fix(*):=20=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=97=B6=E9=97=B4=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/number.js b/src/utils/number.js index b0dae74..ca8c6c6 100644 --- a/src/utils/number.js +++ b/src/utils/number.js @@ -115,7 +115,7 @@ export function formatTime(agoTime) { return parseInt(diff / 3600) + '小时前' } else if (diff < 3600 * 24 * 30) { return parseInt(diff / (3600 * 24)) + '天前' - } else if (diff <= 3600 * 24 * 30 * 12) { + } else if (diff <= 3600 * 24 * 30 * 24) { return parseInt(diff / (3600 * 24 * 30)) + '个月前' } else { return parseInt(diff / (3600 * 24 * 30 * 12)) + '年前'