fix(题目页): 统计页签的老师版回到讲这道题本身,各班只列一张表,不选班、不列人名
Deploy / deploy (push) Canceled after 0s

按人看谁没做对是提交页「数据统计」的活;表里点一个班就去那边看。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-30 00:50:01 +08:00
1 parent 2fddf4a011
commit db493cebe4
5 files changed
+151 -324

No files matched your search

+3 -8
View File
@@ -115,14 +115,9 @@ export async function getProblem(problemID: string, contestID: string) {
return problem
}
/**
* 题目页「统计」页签。problemID 是内部题号(problem.id),比赛题也能查。
* className 只有老师用:看哪个班的明细,不填就是最近做过这题的班
*/
export function getProblemStats(problemID: number, className?: string) {
return api.get<ProblemStats>(`problems/${problemID}/stats`, {
params: className ? { className } : {},
})
/** 题目页「统计」页签。problemID 是内部题号(problem.id),比赛题也能查 */
export function getProblemStats(problemID: number) {
return api.get<ProblemStats>(`problems/${problemID}/stats`)
}
export async function getSubmission(id: string): Promise<Submission> {