1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
| import HomeView from '../views/home/index.vue'
| import PageLayout from '../layout/baseLayout.vue'
| const router = createRouter({
| history: createWebHashHistory(import.meta.env.BASE_URL),
| routes: [
| {
| path: '/',
| name: 'layout',
| component: PageLayout,
| redirect: { name: 'home' },
| children: [
| {
| path: '/home',
| name: 'home',
| component: HomeView,
| },
| ],
| },
| ],
| })
|
| export default router
|
|