🎈 perf:优化路由目录判断
This commit is contained in:
1 parent
6dc5f5dcb5
commit
e0bc260fc1
1 file changed
+1
-1
@@ -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)
|
||||
// 外链
|
||||
|
||||
Reference in new issue
Block a user