modules 添加web

This commit is contained in:
Xwite committed 2023-04-07 20:28:21 +08:00
1 parent ed14659aa6
commit 95f53948f1
88 files changed
+5784

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
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;