model.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/model',
  6. component: Layout,
  7. redirect: '/model/index',
  8. name: 'model',
  9. meta: {
  10. title: '模型管理',
  11. icon: 'ep:coin',
  12. },
  13. children: [
  14. {
  15. path: 'index',
  16. name: 'modelList',
  17. component: () => import('@/views/model/object/index.vue'),
  18. meta: {
  19. title: '对象定义',
  20. sidebar: false,
  21. breadcrumb: false,
  22. activeMenu: '/model',
  23. },
  24. },
  25. {
  26. path: 'object/attr/:modelId/:objectId',
  27. name: 'modelObjectEdit',
  28. component: () => import('@/views/model/attr/index.vue'),
  29. meta: {
  30. title: '对象编辑',
  31. sidebar: false,
  32. activeMenu: '/model',
  33. cache: true,
  34. noCache: 'modelObjectEdit',
  35. },
  36. },
  37. {
  38. path: 'object/oam/:modelId/:objectId',
  39. name: 'modelObjectOAM',
  40. component: () => import('@/views/model/oam/index.vue'),
  41. meta: {
  42. title: '行为定义',
  43. sidebar: false,
  44. activeMenu: '/model',
  45. cache: true,
  46. noCache: 'modelObjectOAM',
  47. },
  48. },
  49. ],
  50. },
  51. ]
  52. export default routes