Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
8ede8887
authored
Mar 15, 2025
by
芋道源码
Committed by
Gitee
Mar 15, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!734 fix: 修复单个顶级菜单加载报错的问题
Merge pull request !734 from chenting/N/A
parents
b8e35387
9679a6df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/utils/routerHelper.ts
+3
-0
No files found.
src/utils/routerHelper.ts
View file @
8ede8887
...
...
@@ -100,6 +100,9 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
//处理顶级非目录路由
if
(
!
route
.
children
&&
route
.
parentId
==
0
&&
route
.
component
)
{
data
.
component
=
Layout
data
.
meta
=
{
hidden
:
meta
.
hidden
,
}
data
.
name
=
toCamelCase
(
route
.
path
,
true
)
+
'Parent'
data
.
redirect
=
''
meta
.
alwaysShow
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment