routes.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: '@/pages/user/Login',
  13. },
  14. ],
  15. },
  16. {
  17. component: '@/pages/404',
  18. },
  19. ],
  20. },
  21. {
  22. path: '/',
  23. name: '工作台',//暂定
  24. redirect: '/invoiceFill',
  25. hideInMenu: true,
  26. },
  27. {
  28. path: '/invoiceFill',
  29. name: '班次列表',
  30. icon: 'SolutionOutlined',
  31. component: '@/pages/invoiceFill',
  32. },
  33. {
  34. path: '/invoiceFill/edit',
  35. name: '班次编辑',
  36. icon: 'ProfileOutlined',
  37. component: '@/pages/invoiceFill/edit.jsx',
  38. hideInMenu:true
  39. },
  40. {
  41. path: '/invoiceDetail',
  42. name: '开票明细',
  43. icon: 'ProfileOutlined',
  44. component: '@/pages/invoiceDetail',
  45. },
  46. {
  47. path: '/nofill',
  48. name: '未填记录',
  49. icon: 'FileSearchOutlined',
  50. component: '@/pages/noFill',
  51. },
  52. {
  53. path: '/',
  54. redirect: '/welcome',
  55. },
  56. {
  57. component: './404',
  58. },
  59. ];