From 3bc924fdfe8db767848ec6a238898db4de7c5726 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 18 Dec 2024 23:38:18 +0800 Subject: [PATCH] fix --- src/utils/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/functions.ts b/src/utils/functions.ts index b74d041..1ba7fdf 100644 --- a/src/utils/functions.ts +++ b/src/utils/functions.ts @@ -66,7 +66,7 @@ export function duration( result += duration.minutes + "分钟" } if (showSeconds) { - result += duration.seconds + "秒" + result += (duration.seconds ?? 0) + "秒" } return result }