fix(题目列表): 「随便来一道」常抽到用自己的语言做不了的题,老师那边「只看没做完」开了看不出藏了什么
Deploy / deploy (push) Canceled after 0s

- 随便来一道:按学生在编辑器里上次用的语言挑(没用过按 Python),C 学生不再抽到 Python 专用题和 SQL 题,Python 学生不再抽到 SQL 题;选了 SQL 知识点或 SQL 类型才从 SQL 题里抽。也跟着「全部类型」的筛选走
- 老师那一版去掉「只看没做完」:没有状态列,开了只是题少了
- 题目页「相似题目」:流程图评到 A / S 的题也算做对,不再推荐,和列表打勾一个口径

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-09 16:56:34 +08:00
1 parent 84bfb44c20
commit 98dfcc1e7e
3 files changed
+58 -23

No files matched your search

+6 -3
View File
@@ -100,9 +100,12 @@ export function getProblemProgress() {
return api.get<ProblemProgress | null>("problems/progress")
}
/** 「随便来一道」:当前知识点里先挑自己没做对的简单 / 中等题,返回题号 */
export function getRandomProblem(tag: string) {
return api.get<string>("problems/random", { params: tag ? { tag } : {} })
/**
* 「随便来一道」:当前知识点和类型里,先挑能用 language 做的、自己没做对的简单 / 中等题,
* 返回题号。空串的参数拦截器会去掉
*/
export function getRandomProblem(params: { tag: string; type: string; language: string }) {
return api.get<string>("problems/random", { params })
}
export function getAuthors(all = false) {