Left Drawer Updates
This commit is contained in:
@@ -37,7 +37,6 @@ export default route(function (/* { store, ssrContext } */) {
|
||||
|
||||
Router.beforeEach(async (to, from, next) => {
|
||||
const auth = useAuthStore();
|
||||
console.log([to.meta.accountRoute, auth.currentUser]);
|
||||
return !to.meta.accountRoute && !auth.currentUser
|
||||
? next({ name: 'login' })
|
||||
: to.meta.accountRoute && auth.currentUser
|
||||
|
||||
Reference in New Issue
Block a user