We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfee075 commit 1a409e2Copy full SHA for 1a409e2
src/router/index.js
@@ -29,7 +29,7 @@ const router = createRouter({
29
});
30
31
// Navigation guard for protected routes
32
-router.beforeEach(functiom beforeEach(to, from, next) {
+router.beforeEach(function beforeEach(to, from, next) {
33
const isAuthenticated = store.state.isAuthenticated; // Get auth status from Vuex
34
35
if (to.matched.some(record => record.meta.requiresAuth)) {
0 commit comments