!604 【优化】优化路由是否为目录判断条件

Merge pull request !604 from 半栈幼儿员/hotfix/router
pull/606/MERGE
芋道源码 2024-11-29 11:30:18 +00:00 committed by Gitee
commit 9da5beb879
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)
// 外链