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
04a94ad9
authored
Oct 03, 2023
by
芋道源码
Committed by
Gitee
Oct 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!254 解决处理顶级非目录路由的组件名称逻辑缺失的问题
Merge pull request !254 from clockdotnet/master_pr
parents
888c1371
361e4fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/utils/routerHelper.ts
+4
-1
No files found.
src/utils/routerHelper.ts
View file @
04a94ad9
...
...
@@ -93,7 +93,10 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
meta
.
alwaysShow
=
true
const
childrenData
:
AppRouteRecordRaw
=
{
path
:
''
,
name
:
toCamelCase
(
route
.
path
,
true
),
name
:
route
.
componentName
&&
route
.
componentName
.
length
>
0
?
route
.
componentName
:
toCamelCase
(
route
.
path
,
true
),
redirect
:
route
.
redirect
,
meta
:
meta
}
...
...
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