Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
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
tianzhuanghu
ant-design-pro-vue
Commits
f69a7c3c
Commit
f69a7c3c
authored
Feb 24, 2019
by
kokoroli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: router redirect
parent
ddd32afc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
PageHeader.vue
src/components/page/PageHeader.vue
+7
-8
router.config.js
src/config/router.config.js
+2
-1
No files found.
src/components/page/PageHeader.vue
View file @
f69a7c3c
...
@@ -3,9 +3,10 @@
...
@@ -3,9 +3,10 @@
<div
class=
"page-header-index-wide"
>
<div
class=
"page-header-index-wide"
>
<a-breadcrumb
class=
"breadcrumb"
>
<a-breadcrumb
class=
"breadcrumb"
>
<a-breadcrumb-item
v-for=
"(item, index) in breadList"
:key=
"index"
>
<a-breadcrumb-item
v-for=
"(item, index) in breadList"
:key=
"index"
>
<router-link
v-if=
"item.name != name"
:to=
"
{ path: item.path }">
<router-link
{{
item
.
meta
.
title
}}
v-if=
"item.name != name && index != 1"
</router-link>
:to=
"
{ path: item.path === '' ? '/' : item.path }"
>
{{
item
.
meta
.
title
}}
</router-link>
<span
v-else
>
{{
item
.
meta
.
title
}}
</span>
<span
v-else
>
{{
item
.
meta
.
title
}}
</span>
</a-breadcrumb-item>
</a-breadcrumb-item>
</a-breadcrumb>
</a-breadcrumb>
...
@@ -34,7 +35,6 @@
...
@@ -34,7 +35,6 @@
<slot
name=
"pageMenu"
></slot>
<slot
name=
"pageMenu"
></slot>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.page-header
{
.page-header
{
background
:
#fff
;
background
:
#fff
;
padding
:
16px
32px
0
;
padding
:
16px
32px
0
;
border-bottom
:
1px
solid
#e8e8e8
;
border-bottom
:
1px
solid
#e8e8e8
;
...
@@ -189,9 +189,9 @@ export default {
...
@@ -189,9 +189,9 @@ export default {
}
}
}
}
}
}
}
}
.mobile
.page-header
{
.mobile
.page-header
{
.main
{
.main
{
...
@@ -233,5 +233,4 @@ export default {
...
@@ -233,5 +233,4 @@ export default {
}
}
}
}
}
}
}
</
style
>
</
style
>
src/config/router.config.js
View file @
f69a7c3c
...
@@ -43,7 +43,7 @@ export const asyncRouterMap = [
...
@@ -43,7 +43,7 @@ export const asyncRouterMap = [
// forms
// forms
{
{
path
:
'/form'
,
path
:
'/form'
,
redirect
:
'/form/bas
ic
-form'
,
redirect
:
'/form/bas
e
-form'
,
component
:
PageView
,
component
:
PageView
,
meta
:
{
title
:
'表单页'
,
icon
:
'form'
,
permission
:
[
'form'
]
},
meta
:
{
title
:
'表单页'
,
icon
:
'form'
,
permission
:
[
'form'
]
},
children
:
[
children
:
[
...
@@ -258,6 +258,7 @@ export const asyncRouterMap = [
...
@@ -258,6 +258,7 @@ export const asyncRouterMap = [
{
{
path
:
'/account'
,
path
:
'/account'
,
component
:
RouteView
,
component
:
RouteView
,
redirect
:
'/account/center'
,
name
:
'account'
,
name
:
'account'
,
meta
:
{
title
:
'个人页'
,
icon
:
'user'
,
keepAlive
:
true
,
permission
:
[
'user'
]
},
meta
:
{
title
:
'个人页'
,
icon
:
'user'
,
keepAlive
:
true
,
permission
:
[
'user'
]
},
children
:
[
children
:
[
...
...
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