First commit

This commit is contained in:
2026-03-18 22:42:33 +09:00
commit 50657066a6
64 changed files with 5290 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { createApp } from "vue";
import { createRouter, createWebHistory } from "vue-router";
import routerStatus from "@/lib/router";
import "@/global.css";
import Layout from "@/Layout.vue";
const app = createApp(Layout);
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: "/",
component: () => import("@/routes/index.vue"),
},
],
});
// @ts-ignore 余分な引数の警告
router.beforeEach((to, from, next) => {
routerStatus.isLoad = true;
next();
});
router.afterEach(() => {
routerStatus.isLoad = false;
});
app.use(router);
app.mount("body");