Skip to content

Commit

Permalink
fix: auth guard
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Apr 3, 2024
1 parent 9b28df3 commit 05208c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ const router = createRouter({
if (to.query.next) {
next(to.query.next);
} else {
next('');
next('/');
}
},
},
{
path: '*',
redirect: '/',
},
],
});

Expand Down

0 comments on commit 05208c5

Please sign in to comment.