23 lines
438 B
TypeScript
Executable File
23 lines
438 B
TypeScript
Executable File
import { createWebHashHistory, createRouter } from 'vue-router'
|
|
|
|
export const bookRoutes = [
|
|
{
|
|
path: '/',
|
|
name: 'shelf',
|
|
component: () => import('../views/BookShelf.vue'),
|
|
},
|
|
{
|
|
path: '/chapter',
|
|
name: 'chapter',
|
|
component: () => import('../views/BookChapter.vue'),
|
|
},
|
|
]
|
|
|
|
const router = createRouter({
|
|
// mode: "history",
|
|
history: createWebHashHistory(),
|
|
routes: bookRoutes,
|
|
})
|
|
|
|
export default router
|