From afb52ce0f8813f87dc21392151bd40091467c171 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sat, 10 Oct 2026 14:39:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A2=98=E7=9B=AE=E5=88=97=E8=A1=A8):=20C?= =?UTF-8?q?=20=E8=AF=AD=E8=A8=80=E8=AF=BE=E7=9A=84=E9=A2=98=E5=9C=A8?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E5=90=8D=E5=90=8E=E6=8C=82=E3=80=8CC?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E3=80=8D=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=B7=B7?= =?UTF-8?q?=E5=9C=A8=E7=9F=A5=E8=AF=86=E7=82=B9=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 「C语言」标签已改成主题分类,像「必会」一样挂在题目名后告诉学生这是 C 语言课专门用的题。 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/problem/list.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/web/src/oj/problem/list.vue b/apps/web/src/oj/problem/list.vue index d2a379b..6959e9a 100644 --- a/apps/web/src/oj/problem/list.vue +++ b/apps/web/src/oj/problem/list.vue @@ -369,6 +369,11 @@ function mustDo(row: ProblemRow) { return row.tags.includes("必会题") } +// 「C语言」是主题标签,告诉学生这道题是 C 语言课专门用的,和「必会」一样挂在题目名后 +function cCourse(row: ProblemRow) { + return row.tags.includes("C语言") +} + const DIFFICULTY_TONE = { 简单: "success", 中等: "warning", 困难: "error" } as const function difficultyStyle(row: ProblemRow) { @@ -550,6 +555,7 @@ const gridColumns = computed(() =>
{{ row.title }} 必会 + C语言
{{ knowledgeOf(row) || "—" }}
@@ -684,6 +690,7 @@ const gridColumns = computed(() => {{ row.title }} 必会 + C语言 @@ -1107,6 +1114,11 @@ const gridColumns = computed(() => color: v-bind("tone('warning').color"); } +.must.course { + border-color: v-bind("theme.infoColorSuppl"); + color: v-bind("tone('info').color"); +} + .knowledge { font-size: var(--oj-fs-sec); color: v-bind("theme.textColor3");