This commit is contained in:
2025-04-14 00:05:08 +08:00
parent 316b39e1e9
commit 6a46a46e3b
2 changed files with 2 additions and 2 deletions

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: "总共学习天数",
},
{

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 {