色々
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user