Skip to content

Commit cbe9ce3

Browse files
authored
docs: update extending routes at runtime (#512)
1 parent 2126ea0 commit cbe9ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/extending-routes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ import { routes } from 'vue-router/auto-routes'
9999
100100
for (const route of routes) {
101101
if (route.name === '/admin') {
102-
adminRoute.meta ??= {}
103-
adminRoute.meta.requiresAuth = true
102+
route.meta ??= {}
103+
route.meta.requiresAuth = true
104104
}
105105
}
106106

0 commit comments

Comments
 (0)