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");