|
@@ -112,7 +112,9 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
title: 'Hello World!',
|
|
|
- name:this.$route.query.name
|
|
|
+ name:this.$route.query.name,
|
|
|
+ image:this.$route.query.image,
|
|
|
+ twitterTitle:this.$route.query.title,
|
|
|
}
|
|
|
},
|
|
|
head() {
|
|
@@ -120,16 +122,33 @@ export default {
|
|
|
title: this.title,
|
|
|
meta: [
|
|
|
{
|
|
|
- hid: 'description',
|
|
|
- name: this.name,
|
|
|
- content: 'My custom description'
|
|
|
- }
|
|
|
+ name: 'twitter:card',
|
|
|
+ content: 'summary_large_image'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'twitter:url',
|
|
|
+ content: 'https://piaoquantv.yishihui.com'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'twitter:title',
|
|
|
+ content: this.twitterTitle
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'twitter:image',
|
|
|
+ content: 'https://i.ytimg.com/vi/7LpAYFsI6yE/'+ this.image +'.jpg'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'twitter:image:width',
|
|
|
+ content: '1280'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'twitter:image:height',
|
|
|
+ content: '720'
|
|
|
+ },
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
-
|
|
|
-
|
|
|
console.log(this.$route.query.name)
|
|
|
}
|
|
|
}
|