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 }