Commit 9da5beb8 by 芋道源码 Committed by Gitee

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

Merge pull request !604 from 半栈幼儿员/hotfix/router
parents e3a39b77 e0bc260f
......@@ -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)
// 外链
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment