halo/ui/uc-src/router/routes.config.ts

35 lines
826 B
TypeScript
Raw Normal View History

import type { RouteRecordRaw } from "vue-router";
import NotFound from "@/views/exceptions/NotFound.vue";
import Forbidden from "@/views/exceptions/Forbidden.vue";
import BasicLayout from "@uc/layouts/BasicLayout.vue";
import ResetPassword from "@uc/views/ResetPassword.vue";
export const routes: Array<RouteRecordRaw> = [
{
path: "/:pathMatch(.*)*",
component: BasicLayout,
children: [{ path: "", name: "NotFound", component: NotFound }],
},
{
path: "/403",
component: BasicLayout,
children: [
{
path: "",
name: "Forbidden",
component: Forbidden,
},
],
},
{
path: "/reset-password/:username",
component: ResetPassword,
name: "ResetPassword",
meta: {
title: "core.uc_reset_password.title",
},
},
];
export default routes;