39 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-12-05 23:01:12 +08:00
import { RouteRecordRaw } from 'vue-router'
// @ts-ignore
const router: RouteRecordRaw[] = [
{
path: '/develop',
component: () => import('/admin/layout/index.vue'),
meta: { title: '开发工具', icon: 'wrench-screwdriver' },
2022-12-05 23:01:12 +08:00
children: [
{
path: 'modules',
name: 'modules',
meta: { title: '模块管理', icon: 'queue-list' },
2022-12-05 23:01:12 +08:00
component: () => import('./module/index.vue'),
},
{
path: 'schemas',
name: 'schemas',
meta: { title: 'Schemas', icon: 'list-bullet' },
2022-12-05 23:01:12 +08:00
component: () => import('./schema/index.vue'),
},
{
path: 'generate/:schema',
name: 'generate',
2023-03-01 15:12:36 +08:00
meta: { title: '代码生成', hidden: true, active_menu: '/develop/schemas' },
2022-12-05 23:01:12 +08:00
component: () => import('./generate/index.vue'),
},
2024-04-23 13:13:52 +08:00
{
path: 'dymaic',
name: 'dymaic',
meta: { title: '动态表格' },
component: () => import('./dymaic/index.vue'),
},
2022-12-05 23:01:12 +08:00
],
},
]
export default router