Pre Merge pull request !604 from 半栈幼儿员/hotfix/router

pull/604/MERGE
半栈幼儿员 2024-11-29 11:26:25 +00:00 committed by Gitee
commit c12250016e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
data.children = [childrenData]
} else {
// 目录
if (route.children) {
if (route.children?.length) {
data.component = Layout
data.redirect = getRedirect(route.path, route.children)
// 外链