web-faq/src/router/index.ts

50 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-13 10:09:04 +07:00
import { createRouter, createWebHistory } from 'vue-router'
const MainLayout = () => import("@/views/MainLayout.vue");
const Metadata = () => import("@/modules/01_metadata/views/Main.vue");
const Organizational = () => import("@/modules/02_organizational/views/Main.vue");
2023-12-14 16:46:24 +07:00
2024-01-03 10:40:22 +07:00
2023-12-14 16:46:24 +07:00
const Contact = () => import("@/modules/00_contact/views/Main.vue");
2023-12-20 10:08:57 +07:00
const Maintenance = () => import("@/modules/001_Maintenance/views/Main.vue");
2023-12-13 10:09:04 +07:00
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: MainLayout,
children:[
{
path: "/metadata",
name: "metadata",
component: Metadata,
},
{
path: "/organizational",
name: "organizational",
2023-12-14 16:46:24 +07:00
component: Organizational,
},
{
path: "/contact",
name: "contact",
component: Contact,
},
2023-12-20 10:08:57 +07:00
{
path: "/maintenance",
name: "maintenance",
component: Maintenance,
},
2023-12-13 10:09:04 +07:00
]
},
]
})
export default router;
2023-12-20 10:08:57 +07:00