mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
chore: removed console.logs
This commit is contained in:
+1
-4
@@ -3,10 +3,7 @@ import { useAuthStore } from './stores/auth.store';
|
||||
|
||||
export function createRouteGuard(router: Router) {
|
||||
router.beforeEach((to, from, next) => {
|
||||
const authStore = useAuthStore();
|
||||
|
||||
console.log(to);
|
||||
|
||||
const authStore = useAuthStore();
|
||||
|
||||
if (to.meta.protected && !authStore.user && !window.localStorage.getItem('user')) {
|
||||
next('/login');
|
||||
|
||||
Reference in New Issue
Block a user