12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { createRouter, createWebHashHistory } from "vue-router";
- const router = createRouter({
- history: createWebHashHistory(import.meta.env.BASE_URL),
- routes: [
- {
- path: "/",
- name: "home",
- component: () => import("../views/Home/index.vue"),
- },
- {
- path: "/index",
- name: "index",
- component: () => import("../views/Index/index.vue"),
- },
- {
- path: "/chapter1",
- name: "chapter1",
- component: () => import("../views/Chapter1/index.vue"),
- },
- {
- path: "/chapter2",
- name: "chapter2",
- component: () => import("../views/Chapter2/index.vue"),
- },
- {
- path: "/chapter3",
- name: "chapter3",
- component: () => import("../views/Chapter3/index.vue"),
- },
- {
- path: "/chapter4",
- name: "chapter4",
- component: () => import("../views/Chapter4/index.vue"),
- },
- {
- path: "/chapter4",
- name: "chapter4",
- component: () => import("../views/Chapter4/index.vue"),
- },
- {
- path: "/detail/:chapter/:index",
- name: "detail",
- component: () => import("../views/Detail/index.vue"),
- },
- ],
- });
- export default router;
|