exception.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { DEFAULT_LAYOUT } from '../base';
  2. import { AppRouteRecordRaw } from '../types';
  3. const EXCEPTION: AppRouteRecordRaw = {
  4. path: '/exception',
  5. name: 'exception',
  6. component: DEFAULT_LAYOUT,
  7. meta: {
  8. locale: 'menu.exception',
  9. requiresAuth: true,
  10. icon: 'icon-exclamation-circle',
  11. order: 6,
  12. },
  13. children: [
  14. {
  15. path: '403',
  16. name: '403',
  17. component: () => import('@/views/exception/403/index.vue'),
  18. meta: {
  19. locale: 'menu.exception.403',
  20. requiresAuth: true,
  21. roles: ['admin'],
  22. },
  23. },
  24. {
  25. path: '404',
  26. name: '404',
  27. component: () => import('@/views/exception/404/index.vue'),
  28. meta: {
  29. locale: 'menu.exception.404',
  30. requiresAuth: true,
  31. roles: ['*'],
  32. },
  33. },
  34. {
  35. path: '500',
  36. name: '500',
  37. component: () => import('@/views/exception/500/index.vue'),
  38. meta: {
  39. locale: 'menu.exception.500',
  40. requiresAuth: true,
  41. roles: ['*'],
  42. },
  43. },
  44. ],
  45. };
  46. export default EXCEPTION;