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
2545a22b
Unverified
Commit
2545a22b
authored
Mar 24, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: page meta
parent
bebb961e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
GlobalFooter.vue
src/components/GlobalFooter/GlobalFooter.vue
+1
-1
PageView.vue
src/layouts/PageView.vue
+12
-9
No files found.
src/components/GlobalFooter/GlobalFooter.vue
View file @
2545a22b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"footer"
>
<div
class=
"footer"
>
<div
class=
"links"
>
<div
class=
"links"
>
<a
<a
href=
"https://pro.
ant.design
/"
href=
"https://pro.
loacg.com
/"
target=
"_blank"
target=
"_blank"
>
Pro 首页
</a>
>
Pro 首页
</a>
<a
<a
...
...
src/layouts/PageView.vue
View file @
2545a22b
...
@@ -81,24 +81,27 @@ export default {
...
@@ -81,24 +81,27 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getPage
HeaderInfo
()
this
.
getPage
Meta
()
},
},
updated
()
{
updated
()
{
this
.
getPage
HeaderInfo
()
this
.
getPage
Meta
()
},
},
methods
:
{
methods
:
{
getPage
HeaderInfo
()
{
getPage
Meta
()
{
// eslint-disable-next-line
// eslint-disable-next-line
this
.
pageTitle
=
(
typeof
(
this
.
title
)
===
'string'
||
!
this
.
title
)
?
this
.
title
:
this
.
$route
.
meta
.
title
this
.
pageTitle
=
(
typeof
(
this
.
title
)
===
'string'
||
!
this
.
title
)
?
this
.
title
:
this
.
$route
.
meta
.
title
// 因为套用了一层 route-view 所以要取 ref 对象下的子节点的第一个对象
const
content
=
this
.
$refs
.
content
const
content
=
this
.
$refs
.
content
if
(
content
)
{
if
(
content
)
{
this
.
description
=
content
.
description
if
(
content
.
pageMeta
)
{
this
.
linkList
=
content
.
linkList
Object
.
assign
(
this
,
content
.
pageMeta
)
this
.
extraImage
=
content
.
extraImage
}
else
{
this
.
search
=
content
.
search
===
true
this
.
description
=
content
.
description
this
.
tabs
=
content
.
tabs
this
.
linkList
=
content
.
linkList
this
.
extraImage
=
content
.
extraImage
this
.
search
=
content
.
search
===
true
this
.
tabs
=
content
.
tabs
}
}
}
}
}
}
}
...
...
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