File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
229229export default function setupGuards ( router : Router ) {
230230 setupRoutes ( router )
231- setupRedirectAuthChildendRoute ( router )
231+ setupRedirectAuthChildrenRoute ( router )
232232 setupProgress ( router )
233233 setupTitle ( router )
234234 setupKeepAlive ( router )
You can’t perform that action at this time.
0 commit comments