nav.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * @description 导航常量
  3. */
  4. import { RouteRecordString, HOME_PAGE } from '@/router/full-routes';
  5. import { useGlobSetting } from '@/hooks/setting';
  6. const { skyeyePlatformHost, tiansuoHost } = useGlobSetting();
  7. // 首页导航列表 根据后端返回权限控制(首页永远存在)
  8. export const NAV_LIST: Array<RouteRecordString> = [
  9. {
  10. ...HOME_PAGE,
  11. },
  12. {
  13. name: 'InstituteSafety',
  14. path: '/institute-safety',
  15. meta: {
  16. title: '院区安全态势',
  17. },
  18. },
  19. {
  20. name: 'WorkSafety',
  21. path: '/work-safety/responsibility-implementation/responsibility-agree-manage-dept',
  22. meta: {
  23. title: '生产安全',
  24. },
  25. },
  26. {
  27. name: 'Traffic',
  28. path: '/traffic',
  29. meta: {
  30. title: '交通安全',
  31. },
  32. },
  33. {
  34. name: 'SecurityConfidentiality',
  35. path: '/security-confidentiality',
  36. meta: {
  37. title: '保卫保密',
  38. },
  39. },
  40. {
  41. name: 'DisasterPrevention',
  42. path: '/disaster-prevention',
  43. meta: {
  44. title: '灾害防范',
  45. },
  46. },
  47. {
  48. name: 'EmergencyManagement',
  49. path: '/emergency-management',
  50. meta: {
  51. title: '应急管理',
  52. },
  53. },
  54. {
  55. name: 'Platform',
  56. path: '/platform',
  57. meta: {
  58. title: '平台管理',
  59. },
  60. },
  61. {
  62. name: 'Skyeye',
  63. path: skyeyePlatformHost || '403',
  64. meta: {
  65. isExternalLink: true,
  66. title: '实时监控',
  67. },
  68. },
  69. {
  70. name: 'Tiansuo',
  71. path: tiansuoHost || '403',
  72. meta: {
  73. isExternalLink: true,
  74. title: '物联集成',
  75. },
  76. },
  77. ];