|
|
@@ -16,7 +16,7 @@
|
|
|
<div
|
|
|
style="color: #FFFFFF; font-weight: 400; flex: auto; text-align: center; padding-right: 30px;"
|
|
|
>
|
|
|
- {{ title }}
|
|
|
+ {{ titles }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -31,10 +31,16 @@ export default {
|
|
|
title: String
|
|
|
},
|
|
|
data: function() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ titles: ""
|
|
|
+ };
|
|
|
},
|
|
|
mounted: function() {
|
|
|
- console.log(this.$router);
|
|
|
+ if (this.title == undefined) {
|
|
|
+ this.titles = this.$route.meta.title;
|
|
|
+ } else {
|
|
|
+ this.titles = this.title;
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
methods: {
|