Left Drawer Updates

This commit is contained in:
2023-11-14 17:48:09 -05:00
parent ace92fd2de
commit 791f065367
4 changed files with 84 additions and 36 deletions

View File

@@ -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