mirror of https://github.com/stilleshan/subweb.git
25 lines
455 B
JavaScript
25 lines
455 B
JavaScript
|
import { createRouter, createWebHistory } from 'vue-router';
|
||
|
import Layout from '@/layouts/Layout.vue';
|
||
|
|
||
|
const routes = [
|
||
|
{
|
||
|
path: '/',
|
||
|
component: Layout,
|
||
|
redirect: '',
|
||
|
children: [
|
||
|
{
|
||
|
path: '',
|
||
|
component: () => import('@/views/home/HomeContent.vue'),
|
||
|
name: 'home',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHistory(process.env.BASE_URL),
|
||
|
routes,
|
||
|
});
|
||
|
|
||
|
export default router;
|