forgeplus-react/config/routes/path.ts

32 lines
650 B
TypeScript

export const Paths = {
path: '/paths',
component: '@/layouts/SimpleLayouts',
routes: [
{
path: '/paths',
component: '@/pages/Paths/Index',
},
{
path: '/paths/new',
component: '@/pages/Paths/New',
},
//新手指引
{
path: '/paths/guidance',
component: '@/pages/Guidance',
exact: true
},
{
path: '/paths/:pathId',
component: '@/pages/Paths/Detail/[id]',
},
{
path: '/paths/:pathId/statistics',
component: '@/pages/Paths/Detail/Statistics',
},
{
path: '/paths/:pathId/edit',
component: '@/pages/Paths/New',
},
],
}