fix friend log notify

This commit is contained in:
pa
2025-11-05 20:31:52 +09:00
committed by Natsumi
parent 2d4aca14ea
commit 24f967aa13
2 changed files with 35 additions and 11 deletions

View File

@@ -25,11 +25,11 @@ const routes = [
{ path: '/player-list', name: 'player-list', component: PlayerList },
{ path: '/search', name: 'search', component: Search },
{ path: '/favorites', name: 'favorites', component: Favorites },
{ path: '/friend-log', name: 'friend-log', component: FriendLog },
{ path: '/moderation', name: 'moderation', component: Moderation },
{ path: '/social/friend-log', name: 'friend-log', component: FriendLog },
{ path: '/social/moderation', name: 'moderation', component: Moderation },
{ path: '/notification', name: 'notification', component: Notification },
{
path: '/friend-list',
path: '/social/friend-list',
name: 'friend-list',
component: FriendList
},
@@ -51,9 +51,13 @@ export function initRouter(app) {
app.use(router);
}
router.beforeEach((to, from) => {
if (to.path === '/social') {
router.beforeEach((to, from, next) => {
if (to.path == '/') {
next('/feed');
return;
}
if (to.path === '/social' || to.path === '/social/social') {
return false;
}
return true;
next();
});