From 4ec6b1d738a302796dd1edba6ec974f86e7c04cd Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 4 Aug 2026 21:02:27 -0600 Subject: [PATCH] =?UTF-8?q?feat(learn):=20=E8=87=AA=E5=AD=A6=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8C=89=E8=AF=AD=E8=A8=80=E5=88=86=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=20C=20=E8=AF=AD=E8=A8=80=E6=95=99?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/oj/api.ts | 4 ++-- src/oj/learn/index.vue | 37 ++++++++++++++++++++++++++++--------- src/routes.ts | 2 +- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/src/oj/api.ts b/src/oj/api.ts index f323de9..1ded8b3 100644 --- a/src/oj/api.ts +++ b/src/oj/api.ts @@ -254,8 +254,8 @@ export function getTutorial(id: number) { return http.get("tutorial", { params: { id } }) } -export function getTutorials() { - return http.get("tutorials") +export function getTutorials(type: "python" | "c") { + return http.get("tutorials", { params: { type } }) } export function getAIDetailData(start: string, end: string, username?: string) { diff --git a/src/oj/learn/index.vue b/src/oj/learn/index.vue index 69303ec..42078d6 100644 --- a/src/oj/learn/index.vue +++ b/src/oj/learn/index.vue @@ -57,7 +57,7 @@ content-style="height: calc(100% - 44px); padding: 0;" > @@ -102,7 +102,7 @@ - + @@ -128,13 +128,19 @@ + +