2022-12-05 23:01:12 +08:00

33 lines
893 B
TypeScript

import { RouteRecordRaw } from 'vue-router'
// @ts-ignore
const router: RouteRecordRaw[] = [
{
path: '/develop',
component: () => import('/admin/layout/index.vue'),
meta: { title: '开发工具', icon: 'wrench-screwdriver', hidden: false },
children: [
{
path: 'modules',
name: 'modules',
meta: { title: '模块管理', icon: 'home', hidden: false },
component: () => import('./module/index.vue'),
},
{
path: 'schemas',
name: 'schemas',
meta: { title: 'Schemas', icon: 'home', hidden: false },
component: () => import('./schema/index.vue'),
},
{
path: 'generate/:schema',
name: 'generate',
meta: { title: '代码生成', hidden: true, is_inner: true },
component: () => import('./generate/index.vue'),
},
],
},
]
export default router