From c5495d98462854bd1ec52f8b267f7b69d90db82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Wed, 20 Apr 2022 20:15:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E5=BD=95=E5=83=8F=E6=97=B6=E9=97=B41=E7=A7=92=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/common.js b/src/utils/common.js index 18ec4678b..8e0e407ff 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -33,7 +33,7 @@ function readableSecond(offset) { return hours.toFixed(1) + ' ' + getTimeUnits('h') } else if (minutes > 1) { return minutes.toFixed(1) + ' ' + getTimeUnits('m') - } else if (seconds > 1) { + } else if (seconds >= 0) { return seconds.toFixed(1) + ' ' + getTimeUnits('s') } return ''