fix
This commit is contained in:
@@ -57,7 +57,7 @@ const metrics = computed(() => {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
icon: "fluent-emoji:face-with-peeking-eye",
|
icon: "fluent-emoji:face-with-peeking-eye",
|
||||||
title: learnDuration.value ?? "1天",
|
title: learnDuration.value,
|
||||||
content: "总共学习天数",
|
content: "总共学习天数",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export function durationToDays(
|
|||||||
if (duration.days) {
|
if (duration.days) {
|
||||||
result += duration.days + "天"
|
result += duration.days + "天"
|
||||||
}
|
}
|
||||||
return result
|
return !!result ? result :"一天以内"
|
||||||
}
|
}
|
||||||
|
|
||||||
export function secondsToDuration(seconds: number): string {
|
export function secondsToDuration(seconds: number): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user