router.config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. export let routers = [
  6. {
  7. path: '/',
  8. redirect:'/public'
  9. },
  10. {
  11. path: '/public',
  12. component: () => import('@/views/login'),
  13. meta: {
  14. title: '登录',
  15. keepAlive: false
  16. },
  17. },
  18. {
  19. path: '/home',
  20. component: () => import('@/components/layouts/index'),
  21. redirect:'/works',
  22. meta: {
  23. title: '主页',
  24. keepAlive: false
  25. },
  26. children: [
  27. {
  28. path: '/works',
  29. name: 'works',
  30. component: () => import('@/views/home/works'),
  31. meta: { title: '工作台', keepAlive: true }
  32. },
  33. {
  34. path: '/menu',
  35. name: 'menu',
  36. component: () => import('@/views/home/menu'),
  37. meta: { title: '菜单', keepAlive: true },
  38. },
  39. {
  40. path: '/isMy',
  41. name: 'isMy',
  42. component: () => import('@/views/home/isMy'),
  43. meta: { title: '我的', keepAlive: true }
  44. },
  45. {
  46. path: '/workTime',
  47. name: 'workTime',
  48. component: () => import('@/views/menu/workTime/index'),
  49. meta: { title: '作息管理', keepAlive: false }
  50. },
  51. {
  52. path: '/nfc',
  53. name: 'nfc',
  54. component: () => import('@/views/menu/NFCmanage/index'),
  55. meta: { title: '履职登记', keepAlive: false }
  56. },
  57. {
  58. path: '/lvzhi',
  59. name: 'lvzhi',
  60. component: () => import('@/views/menu/LZRegister/index'),
  61. meta: { title: '履职登记', keepAlive: false }
  62. }
  63. ],
  64. },
  65. ]