MainLayout , Dashboard, Transfer

This commit is contained in:
Tanyalak 2023-07-07 16:54:53 +07:00
parent ff07547749
commit 3f50b3d075
31 changed files with 14376 additions and 1 deletions

27
src/router/index.ts Normal file
View file

@ -0,0 +1,27 @@
import { createRouter, createWebHistory } from 'vue-router'
const MainLayout = () => import("@/views/MainLayout.vue");
const Dashboard = () => import("@/modules/01_dashboard/views/Dashboard.vue");
import ModuleTransfer from "@/modules/02_transfer/router.ts";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: MainLayout,
children:[
{
path: "/",
name: "dashboard",
component: Dashboard,
},
...ModuleTransfer
]
},
]
})
export default router;