constant.ts 828 B

12345678910111213141516171819202122232425262728293031323334
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception');
  3. /**
  4. * @description: default layout
  5. */
  6. export const DEFAULT_LAYOUT_COMPONENT = () => import('/@/layouts/default/index');
  7. /**
  8. * @description: page-layout
  9. */
  10. export const PAGE_LAYOUT_COMPONENT = () => import('/@/layouts/page/index');
  11. // 404 on a page
  12. export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
  13. path: '/:path(.*)*',
  14. name: 'ErrorPage',
  15. component: EXCEPTION_COMPONENT,
  16. meta: {
  17. title: 'ErrorPage',
  18. hideBreadcrumb: true,
  19. },
  20. };
  21. export const REDIRECT_ROUTE: AppRouteRecordRaw = {
  22. path: '/redirect/:path(.*)*',
  23. name: 'Redirect',
  24. component: () => import('/@/views/sys/redirect/index.vue'),
  25. meta: {
  26. title: 'Redirect',
  27. hideBreadcrumb: true,
  28. },
  29. };