This commit is contained in:
pa
2025-11-05 20:51:12 +09:00
committed by Natsumi
parent 24f967aa13
commit b849cdbdd3
11 changed files with 84 additions and 79 deletions

View File

@@ -51,13 +51,12 @@ export function initRouter(app) {
app.use(router);
}
router.beforeEach((to, from, next) => {
router.beforeEach((to, from) => {
if (to.path == '/') {
next('/feed');
return;
return { name: 'feed' };
}
if (to.path === '/social' || to.path === '/social/social') {
return false;
}
next();
return true;
});