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"),