Skip to content

Commit 3cba388

Browse files
committed
typo
1 parent ae5ff8f commit 3cba388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/router/guards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function setupRoutes(router: Router) {
113113
}
114114

115115
// 当父级路由未配置重定向时,自动重定向到有访问权限的子路由
116-
function setupRedirectAuthChildendRoute(router: Router) {
116+
function setupRedirectAuthChildrenRoute(router: Router) {
117117
router.beforeEach((to, _from, next) => {
118118
const { auth } = useAuth()
119119
const currentRoute = router.getRoutes().find(route => route.path === (to.matched.at(-1)?.path ?? ''))
@@ -228,7 +228,7 @@ function setupOther(router: Router) {
228228

229229
export default function setupGuards(router: Router) {
230230
setupRoutes(router)
231-
setupRedirectAuthChildendRoute(router)
231+
setupRedirectAuthChildrenRoute(router)
232232
setupProgress(router)
233233
setupTitle(router)
234234
setupKeepAlive(router)

0 commit comments

Comments
 (0)