You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. const routes = [
  2. {
  3. path: '/login',
  4. component: '@/pages/login',
  5. layout: false
  6. },
  7. {
  8. path: '/',
  9. component: '@/layouts', // 默认页面
  10. redirect: '/knowledge',
  11. // wrappers: [
  12. // '@/wrappers/auth',
  13. // ]
  14. },
  15. {
  16. id: 2,
  17. name: '知识库',
  18. icon: 'home',
  19. auth: [3, 4, 100],
  20. path: '/knowledge',
  21. component: '@/pages/knowledge',
  22. pathname: 'knowledge'
  23. },
  24. {
  25. id: 2,
  26. name: '知识库',
  27. icon: 'home',
  28. auth: [3, 4, 100],
  29. path: '/knowledge/add/*',
  30. component: '@/pages/add-knowledge',
  31. pathname: 'knowledge',
  32. // routes: [{
  33. // id: 3,
  34. // name: '设置',
  35. // icon: 'home',
  36. // auth: [3, 4, 100],
  37. // path: '/knowledge/add/setting',
  38. // component: '@/pages/setting',
  39. // pathname: "setting"
  40. // }, {
  41. // id: 1,
  42. // name: '文件',
  43. // icon: 'file',
  44. // auth: [3, 4, 100],
  45. // path: '/knowledge/add/file',
  46. // component: '@/pages/file',
  47. // pathname: 'file'
  48. // },]
  49. },
  50. {
  51. id: 3,
  52. name: '聊天',
  53. icon: 'home',
  54. auth: [3, 4, 100],
  55. path: '/chat',
  56. component: '@/pages/chat',
  57. pathname: "chat"
  58. },
  59. {
  60. id: 3,
  61. name: '设置',
  62. icon: 'home',
  63. auth: [3, 4, 100],
  64. path: '/setting',
  65. component: '@/pages/setting',
  66. pathname: "setting"
  67. },
  68. {
  69. id: 1,
  70. name: '文件',
  71. icon: 'file',
  72. auth: [3, 4, 100],
  73. path: '/file',
  74. component: '@/pages/file',
  75. pathname: 'file'
  76. },
  77. {
  78. path: '/*',
  79. component: '@/pages/404',
  80. layout: false
  81. }
  82. ];
  83. module.exports = routes;