modules 添加web
This commit is contained in:
1 parent
ed14659aa6
commit
95f53948f1
88 files changed
+5784
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user