Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b17bda2f
authored
2022-11-22 11:20:56 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:路由修改
1 parent
c13c0a62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/utils/asyncRouter.js
src/views/home/index.vue
src/utils/asyncRouter.js
View file @
b17bda2
...
...
@@ -6,7 +6,7 @@ export default function filterAsyncRouter (routers) {
}
else
{
item
.
children
=
filterAsyncRouter
(
item
.
children
)
}
item
.
path
=
JSON
.
parse
(
item
.
metadata
).
path
item
.
path
=
JSON
.
parse
(
item
.
metadata
).
path
?
JSON
.
parse
(
item
.
metadata
).
path
:
'/'
if
(
!
item
.
parentId
)
{
item
.
component
=
Layout
}
else
{
...
...
src/views/home/index.vue
View file @
b17bda2
...
...
@@ -32,7 +32,7 @@
</el-row>
<el-row
:gutter=
"8"
class=
"marginTop10"
>
<el-col
:span=
"12"
>
<el-card
shadow=
"hover"
style=
"height:2
47
px"
>
<el-card
shadow=
"hover"
style=
"height:2
15
px"
>
<div
slot=
"header"
class=
"flexst"
>
<h5
class=
"title"
>
待办事项
</h5>
<i
class=
"el-icon-s-unfold pointer"
></i>
...
...
@@ -46,7 +46,7 @@
</el-card>
</el-col>
<el-col
:span=
"12"
>
<el-card
shadow=
"hover"
style=
"height:2
47
px"
>
<el-card
shadow=
"hover"
style=
"height:2
15
px"
>
<div
slot=
"header"
class=
"flexst"
>
<h5
class=
"title"
>
政策法规
</h5>
<i
class=
"el-icon-s-unfold pointer"
></i>
...
...
Please
register
or
sign in
to post a comment