2020-02-18 07:57:00 +00:00
|
|
|
import { beforeRegisterGuard } from "@/router/guards/register-guard";
|
|
|
|
import { RouteConfig } from "vue-router";
|
2020-11-30 09:24:11 +00:00
|
|
|
import { EsModuleComponent } from "vue/types/options";
|
2019-04-01 09:49:54 +00:00
|
|
|
|
|
|
|
export enum ErrorRouteName {
|
2020-02-18 07:57:00 +00:00
|
|
|
ERROR = "Error",
|
2019-04-01 09:49:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const errorRoutes: RouteConfig[] = [
|
|
|
|
{
|
2020-02-18 07:57:00 +00:00
|
|
|
path: "/error",
|
2019-04-01 09:49:54 +00:00
|
|
|
name: ErrorRouteName.ERROR,
|
2020-11-30 09:24:11 +00:00
|
|
|
component: (): Promise<EsModuleComponent> =>
|
|
|
|
import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
|
2019-04-01 09:49:54 +00:00
|
|
|
beforeEnter: beforeRegisterGuard,
|
|
|
|
},
|
|
|
|
];
|