error.ts 844 B

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