Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vue-Dashboard
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高源
Vue-Dashboard
Commits
d86e54ec
Commit
d86e54ec
authored
Nov 15, 2024
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11月15日dll版本
parent
b1a95b3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
index.ts
src/router/routes/index.ts
+22
-21
No files found.
src/router/routes/index.ts
View file @
d86e54ec
...
...
@@ -226,27 +226,28 @@ function generateRoutes(data: any[]) {
};
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
route
.
children
=
item
.
children
.
map
(
child
=>
{
const
sanitizedRemark
=
child
.
Remark
&&
child
.
Remark
.
startsWith
(
'/'
)
?
child
.
Remark
.
replace
(
/^
\/
/
,
''
)
:
child
.
Remark
;
return
{
name
:
child
.
Type
===
'System'
?
`
${
item
.
Type
}
_
${
sanitizedRemark
}
`
:
`
${
item
.
Kvid
}
_
${
child
.
Kvid
}
`
,
path
:
child
.
Type
===
'System'
?
`/
${
item
.
Type
}
/
${
sanitizedRemark
}
`
:
`/
${
item
.
Kvid
}
/
${
child
.
Kvid
}
`
,
component
:
'view.iframe-page'
,
props
:
{
url
:
child
.
Type
===
'System'
?
sanitizedRemark
:
''
,
kvid
:
child
.
Kvid
,
type
:
child
.
Type
},
meta
:
{
title
:
child
.
DisplayName
,
icon
:
child
.
Icon
,
order
:
child
.
SortId
,
keepAlive
:
true
,
type
:
'iframe'
}
};
});
route
.
children
=
item
.
children
.
map
(
(
child
:
{
Remark
:
string
;
Type
:
string
;
Kvid
:
any
;
DisplayName
:
any
;
Icon
:
any
;
SortId
:
any
})
=>
{
const
sanitizedRemark
=
child
.
Remark
&&
child
.
Remark
.
startsWith
(
'/'
)
?
child
.
Remark
.
replace
(
/^
\/
/
,
''
)
:
child
.
Remark
;
return
{
name
:
child
.
Type
===
'System'
?
`
${
item
.
Type
}
_
${
sanitizedRemark
}
`
:
`
${
item
.
Kvid
}
_
${
child
.
Kvid
}
`
,
path
:
child
.
Type
===
'System'
?
`/
${
item
.
Type
}
/
${
sanitizedRemark
}
`
:
`/
${
item
.
Kvid
}
/
${
child
.
Kvid
}
`
,
component
:
'view.iframe-page'
,
props
:
{
url
:
child
.
Type
===
'System'
?
sanitizedRemark
:
''
,
kvid
:
child
.
Kvid
,
type
:
child
.
Type
},
meta
:
{
title
:
child
.
DisplayName
,
icon
:
child
.
Icon
,
order
:
child
.
SortId
,
keepAlive
:
true
,
type
:
'iframe'
}
};
});
}
return
route
;
...
...
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