Skip to content

Commit 1a409e2

Browse files
authored
Update index.js
Fixed syntax error
1 parent dfee075 commit 1a409e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const router = createRouter({
2929
});
3030

3131
// Navigation guard for protected routes
32-
router.beforeEach(functiom beforeEach(to, from, next) {
32+
router.beforeEach(function beforeEach(to, from, next) {
3333
const isAuthenticated = store.state.isAuthenticated; // Get auth status from Vuex
3434

3535
if (to.matched.some(record => record.meta.requiresAuth)) {

0 commit comments

Comments
 (0)