This commit is contained in:
2026-05-23 19:54:03 +09:00
parent c3383b778b
commit 1fd95616a5
46 changed files with 3920 additions and 107 deletions
+17 -2
View File
@@ -46,6 +46,13 @@ const router = createRouter({
},
component: () => import("@/routes/signin.vue"),
},
{
path: "/community/:id",
meta: {
title: "コミュニティ",
},
component: () => import("@/routes/community/index.vue"),
},
{
path: "/:NotFound(.*)*",
meta: {
@@ -55,11 +62,19 @@ const router = createRouter({
},
],
});
router.beforeEach(() => {
router.beforeEach((to, from) => {
if (to.path === from.path)
return false;
routerStatus.isLoad = true;
return;
});
router.afterEach((to) => {
router.afterEach((to, from) => {
if (to.path === from.path) {
routerStatus.isLoad = false;
return false;
}
const title = to.meta.title;
let serverName = "LynqChat";