mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
24 lines
458 B
JavaScript
24 lines
458 B
JavaScript
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(),
|
|
// @ts-ignore
|
|
routes: bookRoutes,
|
|
});
|
|
|
|
export default router;
|