diff --git a/src/modules/router.ts b/src/modules/router.ts index 97be1eba..6c213eb3 100644 --- a/src/modules/router.ts +++ b/src/modules/router.ts @@ -2,7 +2,7 @@ import type { RouteRecordRaw } from "vue-router"; // import { ref } from "vue"; // import { useRoute } from "vue-router"; const Error404NotFound = () => import("@/views/Error404NotFound.vue"); -const data = await fetch("/toc.json").then((r) => r.json()); +const data = await fetch("/manual/toc.json").then((r) => r.json()); // const routes = useRoute(); // const hasQueryParam = ref(false); diff --git a/vite.config.ts b/vite.config.ts index 57f385a8..e93d0272 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,7 +7,7 @@ import { quasar, transformAssetUrls } from "@quasar/vite-plugin"; // https://vitejs.dev/config/ export default defineConfig({ - base: "/manual/", + base: "/manual", plugins: [ vue({ template: { transformAssetUrls },