From 2bf7f50021eddbdcade9a424a017aee79865a692 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 18 Dec 2024 23:39:07 +0800 Subject: [PATCH] fix --- src/utils/functions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/functions.ts b/src/utils/functions.ts index 1ba7fdf..aeab3ce 100644 --- a/src/utils/functions.ts +++ b/src/utils/functions.ts @@ -65,8 +65,8 @@ export function duration( if (duration.minutes) { result += duration.minutes + "分钟" } - if (showSeconds) { - result += (duration.seconds ?? 0) + "秒" + if (showSeconds && duration.seconds) { + result += duration.seconds + "秒" } return result }