router.ts 876 B

1234567891011121314151617181920212223242526272829303132
  1. import {RouteRecordRaw} from 'vue-router'
  2. // @ts-ignore
  3. const router: RouteRecordRaw[] = [
  4. {
  5. path: '/develop',
  6. component: () => import('/admin/layout/index.vue'),
  7. meta: { title: '开发工具', icon: 'wrench-screwdriver' },
  8. children: [
  9. {
  10. path: 'modules',
  11. name: 'modules',
  12. meta: { title: '模块管理', icon: 'queue-list' },
  13. component: () => import('./module/index.vue'),
  14. },
  15. {
  16. path: 'schemas',
  17. name: 'schemas',
  18. meta: { title: 'Schemas', icon: 'list-bullet' },
  19. component: () => import('./schema/index.vue'),
  20. },
  21. {
  22. path: 'generate/:schema',
  23. name: 'generate',
  24. meta: { title: '代码生成', hidden: true, active_menu: '/develop/schemas' },
  25. component: () => import('./generate/index.vue'),
  26. },
  27. ],
  28. },
  29. ]
  30. export default router