31 lines
741 B
TypeScript
31 lines
741 B
TypeScript
|
|
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");
|
||
|
|
|
||
|
|
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",
|
||
|
|
component: Organizational
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
]
|
||
|
|
})
|
||
|
|
|
||
|
|
export default router;
|