重构自学模块

This commit is contained in:
2025-06-15 14:40:47 +08:00
parent 70dd3540c9
commit 73b86c644a
36 changed files with 1118 additions and 848 deletions

View File

@@ -89,17 +89,11 @@ export const ojs: RouteRecordRaw = {
component: () => import("oj/user/message.vue"),
meta: { requiresAuth: true },
},
],
}
export const learns: RouteRecordRaw = {
path: "/learn/:step+",
component: () => import("~/shared/layout/default.vue"),
children: [
{
path: "",
component: () => import("learn/index.vue"),
path: "learn/:step+",
name: "learn",
component: () => import("oj/learn/index.vue"),
props: true,
},
],
}
@@ -204,5 +198,21 @@ export const admins: RouteRecordRaw = {
name: "admin message list",
component: () => import("admin/communication/messages.vue"),
},
{
path: "tutorial/list",
name: "admin tutorial list",
component: () => import("admin/tutorial/list.vue"),
},
{
path: "tutorial/create",
name: "admin tutorial create",
component: () => import("admin/tutorial/detail.vue"),
},
{
path: "tutorial/edit/:tutorialID",
name: "admin tutorial edit",
component: () => import("admin/tutorial/detail.vue"),
props: true,
},
],
}