data.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { RouterType } from '@/types'
  2. import React from 'react'
  3. const tabLeftArr: RouterType = [
  4. {
  5. id: 1,
  6. name: '内容发布',
  7. son: [
  8. {
  9. id: 200,
  10. name: '图书管理',
  11. path: '/',
  12. Com: React.lazy(() => import('../A1manage'))
  13. },
  14. {
  15. id: 300,
  16. name: '图书分类',
  17. path: '/classify',
  18. Com: React.lazy(() => import('../A2classify'))
  19. },
  20. {
  21. id: 400,
  22. name: '图书推荐',
  23. path: '/recommend',
  24. Com: React.lazy(() => import('../A3recommend'))
  25. },
  26. {
  27. id: 500,
  28. name: '平台用户',
  29. path: '/iosUser',
  30. Com: React.lazy(() => import('../A4iosUser'))
  31. },
  32. {
  33. id: 600,
  34. name: '图书审核',
  35. path: '/bookAudit',
  36. Com: React.lazy(() => import('../A5bookAudit'))
  37. },
  38. {
  39. id: 700,
  40. name: '评论审核',
  41. path: '/remarkAudit',
  42. Com: React.lazy(() => import('../A6remarkAudit'))
  43. },
  44. {
  45. id: 800,
  46. name: '公告管理',
  47. path: '/notice',
  48. Com: React.lazy(() => import('../A7notice'))
  49. }
  50. ]
  51. },
  52. {
  53. id: 4,
  54. name: '系统设置',
  55. son: [
  56. {
  57. id: 2100,
  58. name: '后台用户',
  59. path: '/user',
  60. Com: React.lazy(() => import('../Z1user'))
  61. },
  62. {
  63. id: 2200,
  64. name: '系统日志',
  65. path: '/log',
  66. Com: React.lazy(() => import('../Z2log'))
  67. }
  68. ]
  69. }
  70. ]
  71. export default tabLeftArr