| | |
| | | import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router' |
| | | import HomeView from '../views/home/index.vue' |
| | | import aboutUs from '../views/aboutUs/index.vue' |
| | | import bookStore from '../views/bookStore/index.vue' |
| | | import bookdetail from '../views/bookStore/detail.vue' |
| | | import PageLayout from '../layout/baseLayout.vue' |
| | | const router = createRouter({ |
| | | history: createWebHashHistory(import.meta.env.BASE_URL), |
| | |
| | | redirect: { name: 'home' }, |
| | | children: [ |
| | | { |
| | | path: '/', |
| | | path: '/home', |
| | | name: 'home', |
| | | component: HomeView, |
| | | }, |
| | | { |
| | | path: '/aboutUs', |
| | | name: 'aboutUs', |
| | | component: aboutUs, |
| | | }, |
| | | { |
| | | path: '/bookdetail', |
| | | name: 'bookdetail', |
| | | component: bookdetail, |
| | | }, |
| | | { |
| | | path: '/bookStore', |
| | | name: 'bookStore', |
| | | component: bookStore, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |