Files
legado/modules/web/src/router/bookRouter.js
2023-04-07 20:28:21 +08:00

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;