static-routes.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. const Layout = () => import('~/layouts/index.vue')
  2. export default [
  3. {
  4. path: '/login',
  5. component: () => import('~/pages/common/login.vue'),
  6. meta: {
  7. title: '登录',
  8. },
  9. },
  10. {
  11. path: '/401',
  12. name: 'Error401',
  13. component: () => import('~/pages/exception/401.vue'),
  14. meta: {
  15. title: '授权已过期',
  16. },
  17. },
  18. {
  19. path: '/common',
  20. name: 'LayoutBasicRedirect',
  21. component: Layout,
  22. redirect: '/common/redirect',
  23. children: [
  24. {
  25. path: '/common/redirect',
  26. component: () => import('~/pages/common/route-view.vue'),
  27. name: 'CommonRedirect',
  28. redirect: '/redirect',
  29. children: [
  30. {
  31. path: '/redirect/:path(.*)',
  32. name: 'RedirectPath',
  33. component: () => import('~/pages/common/redirect.vue'),
  34. },
  35. ],
  36. },
  37. ],
  38. },
  39. {
  40. path: '/:pathMatch(.*)',
  41. meta: {
  42. title: '找不到页面',
  43. },
  44. component: () => import('~/pages/exception/error.vue'),
  45. },
  46. ]