This commit is contained in:
xuyue committed 2025-04-14 00:05:08 +08:00
1 parent 316b39e1e9
commit 6a46a46e3b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ const metrics = computed(() => {
return [
{
icon: "fluent-emoji:face-with-peeking-eye",
title: learnDuration.value ?? "1天",
title: learnDuration.value,
content: "总共学习天数",
},
{
+1 -1
View File
@@ -89,7 +89,7 @@ export function durationToDays(
if (duration.days) {
result += duration.days + "天"
}
return result
return !!result ? result :"一天以内"
}
export function secondsToDuration(seconds: number): string {