Files
wireguard-dashboard-admin/src/router/modules/error.ts

41 lines
844 B
TypeScript
Raw Normal View History

2022-01-05 14:17:06 +08:00
import { $t } from "/@/plugins/i18n";
2022-08-22 21:34:55 +08:00
import type { RouteConfigsTable } from "/#/index";
2021-10-16 16:16:58 +08:00
2022-08-22 21:34:55 +08:00
const errorRouter: RouteConfigsTable = {
2021-10-16 16:16:58 +08:00
path: "/error",
2022-03-04 11:17:08 +08:00
redirect: "/error/403",
2021-10-16 16:16:58 +08:00
meta: {
2022-03-14 14:49:02 +08:00
icon: "information-line",
2022-10-25 17:51:21 +08:00
title: $t("menus.hsabnormal"),
2022-03-04 11:17:08 +08:00
rank: 9
2021-10-16 16:16:58 +08:00
},
children: [
{
2022-03-04 11:17:08 +08:00
path: "/error/403",
name: "403",
component: () => import("/@/views/error/403.vue"),
2021-10-16 16:16:58 +08:00
meta: {
2022-05-11 16:43:56 +08:00
title: $t("menus.hsfourZeroOne")
2021-10-16 16:16:58 +08:00
}
},
{
path: "/error/404",
name: "404",
component: () => import("/@/views/error/404.vue"),
meta: {
2022-05-11 16:43:56 +08:00
title: $t("menus.hsfourZeroFour")
2021-10-16 16:16:58 +08:00
}
2022-03-04 11:17:08 +08:00
},
{
path: "/error/500",
name: "500",
component: () => import("/@/views/error/500.vue"),
meta: {
2022-05-11 16:43:56 +08:00
title: $t("menus.hsFive")
2022-03-04 11:17:08 +08:00
}
2021-10-16 16:16:58 +08:00
}
]
};
export default errorRouter;