重构自学模块
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user