File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" footer" >
3
3
<div class =" links" >
4
4
<a
5
- href =" https://pro.ant.design /"
5
+ href =" https://pro.loacg.com /"
6
6
target =" _blank"
7
7
>Pro 首页</a >
8
8
<a
Original file line number Diff line number Diff line change @@ -81,24 +81,27 @@ export default {
81
81
}
82
82
},
83
83
mounted () {
84
- this .getPageHeaderInfo ()
84
+ this .getPageMeta ()
85
85
},
86
86
updated () {
87
- this .getPageHeaderInfo ()
87
+ this .getPageMeta ()
88
88
},
89
89
methods: {
90
- getPageHeaderInfo () {
90
+ getPageMeta () {
91
91
// eslint-disable-next-line
92
92
this .pageTitle = (typeof (this .title ) === ' string' || ! this .title ) ? this .title : this .$route .meta .title
93
93
94
- // 因为套用了一层 route-view 所以要取 ref 对象下的子节点的第一个对象
95
94
const content = this .$refs .content
96
95
if (content) {
97
- this .description = content .description
98
- this .linkList = content .linkList
99
- this .extraImage = content .extraImage
100
- this .search = content .search === true
101
- this .tabs = content .tabs
96
+ if (content .pageMeta ) {
97
+ Object .assign (this , content .pageMeta )
98
+ } else {
99
+ this .description = content .description
100
+ this .linkList = content .linkList
101
+ this .extraImage = content .extraImage
102
+ this .search = content .search === true
103
+ this .tabs = content .tabs
104
+ }
102
105
}
103
106
}
104
107
}
You can’t perform that action at this time.
0 commit comments