error.ts 914 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { $t } from "/@/plugins/i18n";
  2. import type { RouteConfigsTable } from "/#/index";
  3. const Layout = () => import("/@/layout/index.vue");
  4. const errorRouter: RouteConfigsTable = {
  5. path: "/error",
  6. component: Layout,
  7. redirect: "/error/403",
  8. meta: {
  9. icon: "information-line",
  10. title: $t("menus.hserror"),
  11. rank: 9
  12. },
  13. children: [
  14. {
  15. path: "/error/403",
  16. name: "403",
  17. component: () => import("/@/views/error/403.vue"),
  18. meta: {
  19. title: $t("menus.hsfourZeroOne")
  20. }
  21. },
  22. {
  23. path: "/error/404",
  24. name: "404",
  25. component: () => import("/@/views/error/404.vue"),
  26. meta: {
  27. title: $t("menus.hsfourZeroFour")
  28. }
  29. },
  30. {
  31. path: "/error/500",
  32. name: "500",
  33. component: () => import("/@/views/error/500.vue"),
  34. meta: {
  35. title: $t("menus.hsFive")
  36. }
  37. }
  38. ]
  39. };
  40. export default errorRouter;