routers.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. children: [
  5. {
  6. children: [],
  7. component: '/todo/todo',
  8. id: 1023,
  9. meta: {
  10. activeMenu: null,
  11. alwaysShow: false,
  12. frameSrc: '',
  13. hidden: false,
  14. icon: '',
  15. isFrame: 0,
  16. isRoot: false,
  17. noCache: false,
  18. query: '',
  19. title: '生产安全菜单1',
  20. },
  21. name: 'DeviceCamera',
  22. parentId: 1022,
  23. path: 'camera',
  24. redirect: '',
  25. },
  26. {
  27. children: [],
  28. component: '/todo/todo',
  29. id: 1024,
  30. meta: {
  31. activeMenu: null,
  32. alwaysShow: false,
  33. frameSrc: '',
  34. hidden: false,
  35. icon: '',
  36. isFrame: 0,
  37. isRoot: false,
  38. noCache: false,
  39. query: '',
  40. title: '生产安全菜单2',
  41. },
  42. name: 'DeviceNVR',
  43. parentId: 1022,
  44. path: 'nvr',
  45. redirect: '',
  46. },
  47. ],
  48. component: 'MENU_LAYOUT',
  49. id: 1022,
  50. meta: {
  51. activeMenu: null,
  52. alwaysShow: false,
  53. frameSrc: '',
  54. hidden: false,
  55. icon: 'CameraOutlined',
  56. isFrame: 0,
  57. isRoot: false,
  58. noCache: false,
  59. query: '',
  60. title: '灾害防范',
  61. },
  62. name: 'DisasterPrevention',
  63. parentId: -1,
  64. path: '/disaster-prevention',
  65. redirect: '',
  66. },
  67. ];
  68. export default [
  69. {
  70. url: '/eye_api_bak/api/admin/menu/getRouters',
  71. timeout: 1000,
  72. method: 'get',
  73. response: () => {
  74. return resultSuccess(list);
  75. },
  76. },
  77. ];