modules 添加web

This commit is contained in:
Xwite
2023-04-07 20:28:21 +08:00
parent 3447e46176
commit 57e2c3a418
88 changed files with 5784 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { createWebHashHistory, createRouter } from "vue-router";
import { bookRoutes } from "./bookRouter";
import { sourceRoutes } from "./sourceRouter";
const router = createRouter({
// history: createWebHistory(process.env.BASE_URL),
history: createWebHashHistory(),
// @ts-ignore
routes: bookRoutes.concat(sourceRoutes),
});
router.afterEach((to) => {
if (to.name == "shelf") document.title = "书架";
});
export default router;