Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
a9f2eaef
You need to sign in or sign up before continuing.
Commit
a9f2eaef
authored
Jun 20, 2023
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理菜单数据“/aaa/vvv/#/ccc”转化为/ccc
parent
e887ae72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/router/function.js
src/router/function.js
+3
-0
No files found.
src/router/function.js
View file @
a9f2eaef
...
@@ -278,6 +278,9 @@ function getViews(path) {
...
@@ -278,6 +278,9 @@ function getViews(path) {
var
menuToRouter
=
(
menu
)
=>
{
var
menuToRouter
=
(
menu
)
=>
{
menu
.
forEach
((
e
)
=>
{
menu
.
forEach
((
e
)
=>
{
e
.
name
=
getName
(
e
.
path
);
e
.
name
=
getName
(
e
.
path
);
if
(
e
.
path
.
indexOf
(
"
#
"
)
!=
-
1
)
{
e
.
path
=
e
.
path
.
split
(
"
#
"
)[
1
];
}
if
(
e
.
children
&&
e
.
menuType
==
0
)
{
if
(
e
.
children
&&
e
.
menuType
==
0
)
{
// 其他层级作为文件夹,只提供父级
// 其他层级作为文件夹,只提供父级
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
e
.
component
=
()
=>
import
(
"
../page/parent/parent.vue
"
);
...
...
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