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(() =>