public-routes.js 707 B

12345678910111213141516171819202122232425262728293031323334
  1. import Layout from '@/layout/index.vue'
  2. // 公开路由表
  3. export const publicRoutes = [
  4. {
  5. path: '/login',
  6. name: 'Login',
  7. title: '登录',
  8. component: () => import('@/views/login/index.vue')
  9. },
  10. {
  11. path: '/',
  12. redirect: '/flightData',
  13. name: 'Layout',
  14. component: Layout,
  15. children: [
  16. // {
  17. // path: '/home',
  18. // name: 'Home',
  19. // component: () => import('@/views/home/index.vue'),
  20. // meta: {
  21. // title: '综合看板',
  22. // icon: 'el-icon-s-home'
  23. // }
  24. // },
  25. // 401
  26. {
  27. path: '/401',
  28. name: 'error',
  29. component: () => import('@/views/err-page/401.vue')
  30. }
  31. ]
  32. }
  33. ]