This commit is contained in:
2024-12-18 23:38:18 +08:00
parent d053c8e1ba
commit 3bc924fdfe

View File

@@ -66,7 +66,7 @@ export function duration(
result += duration.minutes + "分钟" result += duration.minutes + "分钟"
} }
if (showSeconds) { if (showSeconds) {
result += duration.seconds + "秒" result += (duration.seconds ?? 0) + "秒"
} }
return result return result
} }