mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
fix routeer push on nav menu click
This commit is contained in:
@@ -18,7 +18,7 @@ const routes = [
|
||||
{ path: '/feed', name: 'feed', component: Feed },
|
||||
{
|
||||
path: '/friend-location',
|
||||
name: 'friendLocation',
|
||||
name: 'friend-location',
|
||||
component: FriendLocation
|
||||
},
|
||||
{ path: '/game-log', name: 'game-log', component: GameLog },
|
||||
@@ -53,9 +53,10 @@ export function initRouter(app) {
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
if (to.path == '/') {
|
||||
return { name: 'feed' };
|
||||
router.push({ name: 'feed' });
|
||||
return false;
|
||||
}
|
||||
if (to.path === '/social' || to.path === '/social/social') {
|
||||
if (to.path === '/social') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user