app.routes.ts 888 B

1234567891011121314151617181920212223242526272829
  1. import { NgModule } from '@angular/core';
  2. import { Routes } from '@angular/router';
  3. export const routes: Routes = [
  4. {
  5. path: '',
  6. loadChildren: () => import('./tabs/tabs.routes').then((m) => m.routes),
  7. },
  8. // 聊天模块
  9. {
  10. path: "chat/session/role/:roleId",
  11. loadComponent: () => import('./test-chat-panel/test-chat-panel.component').then(m => m.TestChatPanelComponent),
  12. runGuardsAndResolvers: "always",
  13. },
  14. {
  15. path: "chat/session/chat/:chatId",
  16. loadComponent: () => import('./test-chat-panel/test-chat-panel.component').then(m => m.TestChatPanelComponent),
  17. runGuardsAndResolvers: "always",
  18. },
  19. {
  20. path: 'chat/pro/chat/:chatId',
  21. redirectTo: '/chat/session/chat/:chatId',
  22. pathMatch: 'full'
  23. },
  24. {
  25. path: 'drug-category',
  26. loadComponent: () => import('./drug-category/drug-category.page').then( m => m.DrugCategoryPage)
  27. },
  28. ];