mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-12 11:23:52 +02:00
simplify
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user