Chg: MikroORMのinfoログをLoggerでもINFOとして扱うように / Chg: MikroORMのdiscoveryログをLoggerでINFOとして扱うように / New: 左側メニューにtitle属性を追加 / Del: 最上位RouterViewのkey / Fix: .route-mainのflex-directionがcolumn出ない問題 / Fix: .route-mainの高さ指定がmin-heightである問題 / Feat: コミュニティのページでチャンネルが表示できるように / Feat: チャンネルページ
This commit is contained in:
@@ -47,11 +47,23 @@ const router = createRouter({
|
||||
component: () => import("@/routes/signin.vue"),
|
||||
},
|
||||
{
|
||||
path: "/community/:id",
|
||||
path: "/community/:communityId",
|
||||
meta: {
|
||||
title: "コミュニティ",
|
||||
isFullRoute: true,
|
||||
canReloadTitle: false,
|
||||
},
|
||||
component: () => import("@/routes/community/index.vue"),
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
component: () => import("@/routes/community/index.inner.vue"),
|
||||
},
|
||||
{
|
||||
path: ":channelId",
|
||||
component: () => import("@/routes/community/channel.vue"),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/:NotFound(.*)*",
|
||||
@@ -75,6 +87,14 @@ router.afterEach((to, from) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
to.matched[0]?.path === from.matched[0]?.path &&
|
||||
from.meta.canReloadTitle === false
|
||||
) {
|
||||
routerStatus.isLoad = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
const title = to.meta.title;
|
||||
|
||||
let serverName = "LynqChat";
|
||||
|
||||
Reference in New Issue
Block a user