diff --git a/src/oj/problem/components/ProblemInfo.vue b/src/oj/problem/components/ProblemInfo.vue
index 51e9c40..a8a6832 100644
--- a/src/oj/problem/components/ProblemInfo.vue
+++ b/src/oj/problem/components/ProblemInfo.vue
@@ -32,12 +32,14 @@ const numbers = computed(() => {
icon: "streamline-emojis:scroll",
title: problem.value?.submission_number ?? 0,
content: "总提交",
+ int: true,
suffix: "",
},
{
icon: "streamline-emojis:woman-raising-hand-2",
title: problem.value?.accepted_number ?? 0,
content: "通过数",
+ int: true,
suffix: "",
},
{
@@ -47,12 +49,14 @@ const numbers = computed(() => {
problem.value?.submission_number ?? 0,
),
content: "通过率",
+ int: false,
suffix: "%",
},
{
icon: "streamline-emojis:sparkles",
- title: Number(beatRate.value),
+ title: parseFloat(beatRate.value),
content: "你击败的用户",
+ int: false,
suffix: "%",
},
]
@@ -108,7 +112,10 @@ onMounted(getBeatRate)