- 原来不显示是哪道题、时间只到日、答案错误不说为什么,测试点表 5 行一模一样 - 右边摆题目页那块例子对比(输入 / 正确输出 / 他的输出,差的字标红),编译失败、运行时错误同提交列表右栏的说法,代码里标出那一行 - 「这道题交了 N 次」常驻右栏,← → 一次次翻,看他是怎么改对的;题单藏着的那几次点不进 - 老师:「他的全部提交」和「⋯」(复制两项、重新判题);测试点方块悬停看用时和内存;判题中自己刷新 - 别人的代码、链接不对原来一直转圈,现在说清楚是哪种;自己在题单布置期内的照样看得到是哪道题、什么结果 - 后端详情多给题目名、班级、题单,`?attempts=1` 带上同题的每一次;看不到别人的回 403 而不是 404;提交者本人也拿得到 contestId(比赛里的题号是比赛自己的) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4240a451e4
commit
df76e7f101
8 files changed
+1000
-269
No files matched your search
@@ -131,10 +131,13 @@ export function getProblemStats(problemID: number) {
|
||||
return api.get<ProblemStats>(`problems/${problemID}/stats`)
|
||||
}
|
||||
|
||||
export async function getSubmission(id: string): Promise<Submission> {
|
||||
/** `attempts`:带上这个人这道题交过的每一次(独立的提交详情页用,见契约 attempts) */
|
||||
export async function getSubmission(id: string, attempts = false): Promise<Submission> {
|
||||
const [{ submissionDetailSchema }, response] = await Promise.all([
|
||||
loadDetailSchemas(),
|
||||
api.get<unknown>(`submissions/${encodeURIComponent(id)}`),
|
||||
api.get<unknown>(`submissions/${encodeURIComponent(id)}`, {
|
||||
params: attempts ? { attempts: "1" } : undefined,
|
||||
}),
|
||||
])
|
||||
return contract("GET /submissions/:id", submissionDetailSchema, response)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user