From fe2411083ffc02d3563ca0d630bb4fb1c351be78 Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Mon, 27 Oct 2025 17:33:11 +0800
Subject: [PATCH] update
---
src/oj/problemset/list.vue | 12 +++++++++++-
src/utils/types.ts | 1 +
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/oj/problemset/list.vue b/src/oj/problemset/list.vue
index 151eb16..4815285 100644
--- a/src/oj/problemset/list.vue
+++ b/src/oj/problemset/list.vue
@@ -226,6 +226,7 @@ watch(
width="24"
height="24"
object-fit="cover"
+ :class="{ 'earned-badge': badge.is_earned }"
/>
@@ -241,6 +242,9 @@ watch(
)
}}
+
+ ✓ 已获得
+
@@ -260,4 +264,10 @@ watch(
-
+
diff --git a/src/utils/types.ts b/src/utils/types.ts
index dc2f09b..b39410d 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -242,6 +242,7 @@ export interface ProblemSetBadge {
icon: string
condition_type: "all_problems" | "problem_count" | "score"
condition_value: number
+ is_earned?: boolean
}
export interface UserBadge {