forked from Gitlink/forgeplus-react
46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
export const Question = {
|
|
path: '/problems',
|
|
component: "@/layouts/index",
|
|
routes: [
|
|
{
|
|
path: '/problems/:id/edit',
|
|
exact: true,
|
|
component: '@/pages/Problems/OjForm/index',
|
|
},
|
|
{
|
|
path: '/problems/new',
|
|
exact: true,
|
|
component: '@/pages/Problems/OjForm/index',
|
|
},
|
|
{
|
|
path: '/problems/:id/oj/:save_identifier',
|
|
component: '@/pages/Question/OjProblem',
|
|
},
|
|
{
|
|
path: '/problems/:id/record-detail/:submitId',
|
|
component: '@/pages/Question/OjProblem/RecordDetail',
|
|
},
|
|
{
|
|
path: '/problems/add',
|
|
component: '@/pages/Question/AddOrEdit',
|
|
},
|
|
{
|
|
path: '/problems/:id/ojedit',
|
|
component: '@/pages/Question/AddOrEdit',
|
|
},
|
|
{
|
|
path: '/problems',
|
|
component: '@/layouts/SimpleLayouts',
|
|
routes: [
|
|
{
|
|
path: '/problems',
|
|
component: '@/pages/Question/Index',
|
|
},
|
|
{
|
|
path: '/problems/batchAdd',
|
|
component: '@/pages/Question/AddOrEdit/BatchAdd',
|
|
},
|
|
]
|
|
}
|
|
]
|
|
} |