From 734fc7d083ead42521117343f807bc48f056f31e Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sat, 10 May 2025 20:07:09 +0800 Subject: [PATCH] fix --- src/routes.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/routes.ts b/src/routes.ts index 647cd77..4665541 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -42,14 +42,6 @@ export const ojs: RouteRecordRaw = { meta: { requiresAuth: true }, name: "contest problems", }, - { - path: "problem/:problemID", - component: () => import("oj/problem/detail.vue"), - props: true, - name: "contest problem", - meta: { requiresAuth: true }, - beforeEnter: loadChart, - }, { path: "submission", component: () => import("oj/submission/list.vue"), @@ -65,6 +57,14 @@ export const ojs: RouteRecordRaw = { }, ], }, + { + path: "contest/:contestID/problem/:problemID", + component: () => import("oj/problem/detail.vue"), + props: true, + name: "contest problem", + meta: { requiresAuth: true }, + beforeEnter: loadChart, + }, { path: "rank", component: () => import("oj/rank/list.vue"),