app.routes.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Routes } from '@angular/router';
  2. export const routes: Routes = [
  3. {
  4. path: '',
  5. loadChildren: () => import('./tabs/tabs.routes').then((m) => m.routes),
  6. },
  7. // 向量:文本特征向量
  8. {
  9. path: "text/embed",
  10. loadComponent: () => import('../modules/text/page-text-embed/page-text-embed.component').then(m => m.PageTextEmbedComponent),
  11. },
  12. // 知识库:杭州市人才政策知识库
  13. {
  14. path: "story/hangzhou",
  15. loadComponent: () => import('../modules/story/page-hangzhou/page-hangzhou.component').then(m => m.PageHangzhouComponent),
  16. runGuardsAndResolvers: "always",
  17. },
  18. // 向量:面部特征向量
  19. {
  20. path: "face/feat68",
  21. loadComponent: () => import('../modules/face/page-feat68/page-feat68.component').then(m => m.PageFeat68Component),
  22. runGuardsAndResolvers: "always",
  23. },
  24. // 聊天模块
  25. {
  26. path: "chat/session/role/:roleId",
  27. loadComponent: () => import('./test-chat-panel/test-chat-panel.component').then(m => m.TestChatPanelComponent),
  28. runGuardsAndResolvers: "always",
  29. },
  30. {
  31. path: "chat/session/chat/:chatId",
  32. loadComponent: () => import('./test-chat-panel/test-chat-panel.component').then(m => m.TestChatPanelComponent),
  33. runGuardsAndResolvers: "always",
  34. },
  35. {
  36. path: 'chat/pro/chat/:chatId',
  37. redirectTo: '/chat/session/chat/:chatId',
  38. pathMatch: 'full'
  39. },
  40. {
  41. path: "flow/editor/new",
  42. loadComponent: () => import('../modules/flow/comp-flow-editor/comp-flow-editor.component').then(m => m.CompFlowEditorComponent),
  43. runGuardsAndResolvers: "always",
  44. },
  45. ];