index.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. redirect: '/management'
  6. },
  7. {
  8. path: '/management',
  9. name: 'SkillManagement',
  10. component: () => import('../views/SkillManagement.vue'),
  11. meta: { title: '技能管理' }
  12. },
  13. {
  14. path: '/skill/edit/:folderName',
  15. name: 'SkillEdit',
  16. component: () => import('../views/skill/SkillEdit.vue'),
  17. meta: { title: '编辑技能' }
  18. },
  19. {
  20. path: '/orchestration',
  21. name: 'WorkflowList',
  22. component: () => import('../views/workflow/WorkflowList.vue'),
  23. meta: { title: '智能体编排' }
  24. },
  25. {
  26. path: '/orchestration/edit/:id?',
  27. name: 'WorkflowEditor',
  28. component: () => import('../views/workflow/WorkflowEditor.vue'),
  29. meta: { title: '编辑工作流' }
  30. },
  31. {
  32. path: '/tags',
  33. name: 'TagManagement',
  34. component: () => import('../views/TagManagement.vue'),
  35. meta: { title: '标签管理' }
  36. }
  37. ]
  38. const router = createRouter({
  39. history: createWebHistory(),
  40. routes
  41. })
  42. export default router